mirror of https://github.com/Fabio286/antares.git
feat(UI): hide filter bar if there are no more rows in it
This commit is contained in:
parent
968a67ce3d
commit
91788054e6
|
@ -132,7 +132,7 @@
|
||||||
v-if="isSearch"
|
v-if="isSearch"
|
||||||
:fields="fields"
|
:fields="fields"
|
||||||
@filter="updateFilters"
|
@filter="updateFilters"
|
||||||
@filter-change="resizeScroller"
|
@filter-change="onFilterChange"
|
||||||
/>
|
/>
|
||||||
<div class="workspace-query-results p-relative column col-12">
|
<div class="workspace-query-results p-relative column col-12">
|
||||||
<BaseLoader v-if="isQuering" />
|
<BaseLoader v-if="isQuering" />
|
||||||
|
@ -438,6 +438,10 @@ export default {
|
||||||
downloadTable (format) {
|
downloadTable (format) {
|
||||||
this.$refs.queryTable.downloadTable(format, this.table);
|
this.$refs.queryTable.downloadTable(format, this.table);
|
||||||
},
|
},
|
||||||
|
onFilterChange (clausoles) {
|
||||||
|
if (clausoles.length === 0)
|
||||||
|
this.isSearch = false;
|
||||||
|
},
|
||||||
resizeScroller () {
|
resizeScroller () {
|
||||||
setTimeout(() => this.$refs.queryTable.refreshScroller(), 1);
|
setTimeout(() => this.$refs.queryTable.refreshScroller(), 1);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue