[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:
siva kumar
2020-10-06 19:25:42 +05:30
committed by GitHub
parent a4af32c704
commit bce1aeb723
8 changed files with 137 additions and 3 deletions

View File

@@ -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;
}
}