RED-6154, remove getter from template, replace label based ids with generics.

This commit is contained in:
George 2023-02-23 21:45:57 +02:00
parent d956c5f68d
commit d9a92992c3
4 changed files with 2 additions and 10 deletions

View File

@ -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"

View File

@ -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` : '';
}

View File

@ -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"

View File

@ -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';
}
}