[ACA-4262] Content node selector - show 2 tabs only in cloud attach file widget (#6578)

This commit is contained in:
arditdomi
2021-01-26 16:57:17 +01:00
committed by GitHub
parent 06b041fbf5
commit 099bec6f1d
4 changed files with 40 additions and 4 deletions

View File

@@ -137,4 +137,13 @@ export class ContentNodeSelectorComponent implements OnInit {
isLocalUploadTabSelected (): boolean {
return this.selectedTabIndex === 1;
}
isUploadEnabled(): boolean {
return this.canPerformLocalUpload() && this.isLocalUploadTabSelected();
}
canPerformLocalUpload(): boolean {
return this.data?.showLocalUploadButton;
}
}