This commit is contained in:
Yuri Kuznetsov
2024-01-15 16:19:21 +02:00
parent 0fc170e1c3
commit 28bc720bbc
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ class GlobalStreamView extends View {
collection: this.collection,
searchManager: this.searchManager,
isWide: true,
layoutName: 'filtersGlobal',
filtersLayoutName: 'filtersGlobal',
});
return this.assignView('search', this.searchView, '.search-container');
+3 -3
View File
@@ -63,7 +63,7 @@ class SearchView extends View {
/** @type {{string: module:search-manager~advancedFilter}} */
advanced
bool = null
layoutName = 'filters'
filtersLayoutName = 'filters'
disableSavePreset = false
textFilterDisabled = false
@@ -106,7 +106,7 @@ class SearchView extends View {
setup() {
this.entityType = this.collection.entityType;
this.scope = this.options.scope || this.entityType;
this.layoutName = this.options.layoutName || this.layoutName;
this.filtersLayoutName = this.options.filtersLayoutName || this.filtersLayoutName;
/** @type {module:search-manager} */
this.searchManager = this.options.searchManager;
@@ -175,7 +175,7 @@ class SearchView extends View {
this.wait(
new Promise(resolve => {
this.getHelper().layoutManager.get(this.entityType, this.layoutName, list => {
this.getHelper().layoutManager.get(this.entityType, this.filtersLayoutName, list => {
this.fieldFilterList = [];
(list || []).forEach(field => {