mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
@@ -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[]>();
|
||||
|
Reference in New Issue
Block a user