[AAE-4426] Add upload from local tab in attach file widget (#6540)

* [AAE-4426] Add upload from local tab in attach file widget

* Align e2e with the new behaviour when uploading a file
This commit is contained in:
arditdomi
2021-01-19 15:08:51 +01:00
committed by GitHub
parent 98705109e1
commit 58f78bca52
6 changed files with 114 additions and 43 deletions

View File

@@ -38,6 +38,7 @@ export class ContentNodeSelectorComponent implements OnInit {
showingSearch = false;
hasAllowableOperations = false;
isLoading = true;
selectedTabIndex: number = 0;
constructor(private translation: TranslationService,
private contentService: ContentService,
@@ -124,4 +125,16 @@ export class ContentNodeSelectorComponent implements OnInit {
onFolderLoaded() {
this.isLoading = false;
}
onTabSelectionChange(tabIndex: number) {
this.selectedTabIndex = tabIndex;
}
isFileServerTabSelected (): boolean {
return this.selectedTabIndex === 0;
}
isLocalUploadTabSelected (): boolean {
return this.selectedTabIndex === 1;
}
}