[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:
siva kumar
2020-11-24 15:25:06 +05:30
committed by GitHub
parent 3ea094cff2
commit 67b9b884fd
4 changed files with 25 additions and 1 deletions

View File

@@ -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;
}
}