[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

@@ -111,6 +111,10 @@ export class ContentNodeSelectorComponent implements OnInit {
return this.chosenNode?.length || 0;
}
isCounterVisible(): boolean {
return this.action === 'ATTACH' || this.action === 'CHOOSE';
}
isMultipleSelection(): boolean {
return this.data.selectionMode === 'multiple';
}