mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-4090] [ADW - Cloud] Warning message is displayed for one second in destination picker when Upload button is enabled (#6373)
* [AAE-4090] [ADW - Cloud] Warning message is displayed for one second in destination picker when Upload button is enabled * * Added unit test
This commit is contained in:
@@ -36,6 +36,7 @@ export class ContentNodeSelectorComponent {
|
||||
currentDirectoryId: string;
|
||||
showingSearch = false;
|
||||
hasAllowableOperations = false;
|
||||
isLoading = true;
|
||||
|
||||
constructor(private translation: TranslationService,
|
||||
private contentService: ContentService,
|
||||
@@ -61,6 +62,7 @@ export class ContentNodeSelectorComponent {
|
||||
|
||||
onNavigationChange(pathElement: NodeEntryEvent) {
|
||||
this.currentDirectoryId = pathElement.value.id;
|
||||
this.isLoading = true;
|
||||
}
|
||||
|
||||
onClick(): void {
|
||||
@@ -101,4 +103,8 @@ export class ContentNodeSelectorComponent {
|
||||
isNotAllowedToUpload() {
|
||||
return this.showingSearch || !this.hasAllowableOperations;
|
||||
}
|
||||
|
||||
onFolderLoaded() {
|
||||
this.isLoading = false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user