mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-4430] Upload from local tab visibility with info icon error message (#6592)
* [AAE-4430] Upload from local tab visibility with info icon error message * Fix restore deleted site e2e
This commit is contained in:
@@ -146,4 +146,17 @@ export class ContentNodeSelectorComponent implements OnInit {
|
||||
return this.data?.showLocalUploadButton;
|
||||
}
|
||||
|
||||
getWarningMessage(): string {
|
||||
return this.showingSearch ? 'NODE_SELECTOR.UPLOAD_BUTTON_SEARCH_WARNING_MESSAGE' :
|
||||
(this.hasNoPermissionToUpload() ? 'NODE_SELECTOR.UPLOAD_BUTTON_PERMISSION_WARNING_MESSAGE' : '');
|
||||
}
|
||||
|
||||
hasNoPermissionToUpload(): boolean {
|
||||
return (!this.hasAllowableOperations && !this.showingSearch) && !this.isLoading;
|
||||
}
|
||||
|
||||
hasUploadError(): boolean {
|
||||
return this.showingSearch || this.hasNoPermissionToUpload();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user