|
|
|
@ -27,10 +27,10 @@ export class Datebase extends BI.Widget {
|
|
|
|
|
if (search) { |
|
|
|
|
this.store.setFilter(''); |
|
|
|
|
this.store.setDatebaseTypes(this.allDatabaseTypes.filter(item => item.text.toLowerCase().includes(search.toLowerCase()))); |
|
|
|
|
} else { |
|
|
|
|
} else if (!this.model.filter) { |
|
|
|
|
this.store.setFilter(DATEBASE_FILTER_TYPE.COMMONLY); |
|
|
|
|
this.search.setValue(search); |
|
|
|
|
} |
|
|
|
|
this.search.setValue(search); |
|
|
|
|
}, |
|
|
|
|
filter: (filter: string) => { |
|
|
|
|
this.filter.setValue(filter); |
|
|
|
|