mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user