RED-6154, remove getter from template, replace label based ids with generics.
This commit is contained in:
parent
d956c5f68d
commit
d9a92992c3
@ -72,7 +72,7 @@
|
||||
<ng-content select="[slot=right]"></ng-content>
|
||||
|
||||
<iqser-circle-button
|
||||
[buttonId]="closeButtonId"
|
||||
buttonId="close-view-btn"
|
||||
(action)="closeAction.emit()"
|
||||
*ngIf="showCloseButton"
|
||||
[class.ml-6]="actionConfigs"
|
||||
|
||||
@ -35,10 +35,6 @@ export class PageHeaderComponent<T extends IListable> {
|
||||
|
||||
constructor(@Optional() readonly filterService: FilterService, @Optional() readonly searchService: SearchService<T>) {}
|
||||
|
||||
get closeButtonId() {
|
||||
return this.pageLabel?.toLowerCase()?.replace(/ /g, '-') + '-close-view-btn';
|
||||
}
|
||||
|
||||
get filterHelpModeKey() {
|
||||
return this.helpModeKey ? `filter_${this.helpModeKey}_list` : '';
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<div [class.selection-enabled]="selectionEnabled" class="header-item">
|
||||
<div [iqserHelpMode]="helpModeKey" class="header-title">
|
||||
<iqser-round-checkbox
|
||||
[id]="selectAllId"
|
||||
id="select-all-entities-toggle"
|
||||
(click)="listingService.selectAll()"
|
||||
*ngIf="selectionEnabled"
|
||||
[active]="listingService.areAllSelected$ | async"
|
||||
|
||||
@ -28,8 +28,4 @@ export class TableHeaderComponent<T extends IListable<PrimaryKey>, PrimaryKey ex
|
||||
readonly listingService: ListingService<T>,
|
||||
readonly filterService: FilterService,
|
||||
) {}
|
||||
|
||||
get selectAllId() {
|
||||
return this.tableHeaderLabel.split('.')[0].replace(/ /g, '-') + '-select-all-check';
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user