[AAE-5124] Show counter only when attaching files (#7011)

* [AAE-5124] Show counter only when attaching files

* Reset package-lock.json

* Add another unit test

* Fix unit test
This commit is contained in:
Thomas Hunter
2021-05-12 17:42:49 +02:00
committed by GitHub
parent 3a558d701a
commit c96b6ea36f
7 changed files with 45 additions and 2 deletions

View File

@@ -76,6 +76,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
private showSiteList = true;
private showSearchField = true;
private showCounter = false;
/** If true will restrict the search and breadcrumbs to the currentFolderId */
@Input()
@@ -200,6 +201,16 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
}
}
/** Shows the node counter in the breadcrumb */
@Input()
set showNodeCounter(value: boolean) {
this.showCounter = value ?? false;
}
get showNodeCounter(): boolean {
return this.showCounter;
}
/** Emitted when the user has chosen an item. */
@Output()
select: EventEmitter<Node[]> = new EventEmitter<Node[]>();