mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 06:46:00 +00:00
clear filter button
This commit is contained in:
@@ -338,4 +338,16 @@ export abstract class GridDisplay {
|
||||
});
|
||||
this.reload();
|
||||
}
|
||||
|
||||
get filterCount() {
|
||||
return _.compact(_.values(this.config.filters)).length;
|
||||
}
|
||||
|
||||
clearFilters() {
|
||||
this.setConfig({
|
||||
...this.config,
|
||||
filters: {},
|
||||
});
|
||||
this.reload();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user