mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user