mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-3637] Attach file - Upload button is not disabled when the user is in search mode (#6193)
* [AAE-3637] Attach file - Upload button is not disabled when the user is in search mode * Add missing documentation for Input on the search filters * * Added warning message * * Added Unit tests to the recent changes * * Fixed css error * * Updated string Co-authored-by: adomi <ardit.domi@alfresco.com>
This commit is contained in:
@@ -34,6 +34,7 @@ export class ContentNodeSelectorComponent {
|
||||
buttonActionName: string;
|
||||
chosenNode: Node[];
|
||||
currentDirectoryId: string;
|
||||
disableUploadButton = false;
|
||||
|
||||
constructor(private translation: TranslationService,
|
||||
private notificationService: NotificationService,
|
||||
@@ -86,4 +87,8 @@ export class ContentNodeSelectorComponent {
|
||||
hasNodeSelected(): boolean {
|
||||
return this.chosenNode?.length > 0;
|
||||
}
|
||||
|
||||
onShowingSearch(value: boolean) {
|
||||
this.disableUploadButton = value;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user