fixed template handling in new useredit view
This commit is contained in:
@@ -58,9 +58,16 @@ Vue.component('tt-select', {
|
||||
},
|
||||
|
||||
filteredOptions() {
|
||||
if (!this.searchable || !this.searchQuery) return this.normalizedOptions;
|
||||
const displayLimit = 100;
|
||||
|
||||
if (!this.searchable || !this.searchQuery) {
|
||||
return this.normalizedOptions.slice(0, displayLimit);
|
||||
}
|
||||
|
||||
const q = this.searchQuery.toLowerCase();
|
||||
return this.normalizedOptions.filter(o => o.text.toLowerCase().includes(q));
|
||||
return this.normalizedOptions
|
||||
.filter(option => option.text.toLowerCase().includes(q))
|
||||
.slice(0, displayLimit);
|
||||
},
|
||||
|
||||
displayText() {
|
||||
|
||||
Reference in New Issue
Block a user