disable storing text filters param
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
"followCreatedEntityTypeList": "Auto-follow created records of specific entity types",
|
||||
"emailUseExternalClient": "Use an external email client",
|
||||
"scopeColorsDisabled": "Disable scope colors",
|
||||
"tabColorsDisabled": "Disable tab colors"
|
||||
"tabColorsDisabled": "Disable tab colors",
|
||||
"textSearchStoringDisabled": "Disable storing text filters"
|
||||
},
|
||||
"links": {
|
||||
},
|
||||
|
||||
@@ -46,7 +46,9 @@
|
||||
}
|
||||
],
|
||||
[
|
||||
false,
|
||||
{
|
||||
"name": "textSearchStoringDisabled"
|
||||
},
|
||||
{
|
||||
"name": "followCreatedEntityTypeList"
|
||||
}
|
||||
|
||||
@@ -187,6 +187,10 @@
|
||||
"tabColorsDisabled": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"textSearchStoringDisabled": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"noDeletedAttribute": true,
|
||||
|
||||
@@ -102,6 +102,8 @@ define('views/record/search', ['view', 'helpers/misc/stored-text-search'], funct
|
||||
*/
|
||||
this.storedTextSearchHelper = new StoredTextSearch(this.scope, this.getHelper().storage);
|
||||
|
||||
this.textSearchStoringDisabled = this.getPreferences().get('textSearchStoringDisabled');
|
||||
|
||||
this.textFilterDisabled = this.options.textFilterDisabled || this.textFilterDisabled ||
|
||||
this.getMetadata().get(['clientDefs', this.scope, 'textFilterDisabled']);
|
||||
|
||||
@@ -695,6 +697,10 @@ define('views/record/search', ['view', 'helpers/misc/stored-text-search'], funct
|
||||
},
|
||||
|
||||
initTextSearchAutocomplete: function () {
|
||||
if (this.textSearchStoringDisabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
let preventCloseOnBlur = false;
|
||||
|
||||
let options = {
|
||||
@@ -1297,6 +1303,10 @@ define('views/record/search', ['view', 'helpers/misc/stored-text-search'], funct
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.textSearchStoringDisabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.storedTextSearchHelper.store(this.textFilter);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user