Skip to content

Commit a52a655

Browse files
committed
fix: add selected count to entry-list-pop header
1 parent 677ecb0 commit a52a655

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/data/src/lib/entry-list-pop/entry-list-pop.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,11 @@ export class EntryListPopComponent extends PopComponent implements OnChanges {
5555
}
5656
// this.searchbar.focusEvent.emit(true);
5757
}
58-
5958
getHeader(entryList) {
60-
const label = this.config.singularLabel || entryList.model;
59+
const label = this.config.singularLabel || `${entryList.model}`;
60+
if (!this.selection.isEmpty()) {
61+
return `${label}: ${this.selection.items.length} selected`;
62+
}
6163
return `${label}`;
6264
}
6365
}

0 commit comments

Comments
 (0)