[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

@@ -212,6 +212,10 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
@Output()
siteChange: EventEmitter<string> = new EventEmitter<string>();
/** Emitted on search input. */
@Output()
showingSearch: EventEmitter<boolean> = new EventEmitter<boolean>();
@ViewChild('documentList', { static: true })
documentList: DocumentListComponent;
@@ -406,6 +410,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
this.pagination.maxItems = this.pageSize;
this.resetChosenNode();
this.showingSearchResults = false;
this.showingSearch.emit(this.showingSearchResults);
}
/**
@@ -464,6 +469,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
private showSearchResults(nodePaging: NodePaging): void {
this.showingSearchResults = true;
this.loadingSearchResults = false;
this.showingSearch.emit(this.showingSearchResults);
this.nodePaging = nodePaging;
}