fix: add once-button action for grid Reset View
This commit is contained in:
parent
db5e4e88f6
commit
2e5feeb6f4
|
@ -55,10 +55,11 @@
|
||||||
:size="smallFilters ? 'is-small' : null" />
|
:size="smallFilters ? 'is-small' : null" />
|
||||||
|
|
||||||
<b-button @click="resetView()"
|
<b-button @click="resetView()"
|
||||||
|
:disabled="viewResetting"
|
||||||
icon-pack="fas"
|
icon-pack="fas"
|
||||||
icon-left="undo"
|
icon-left="undo"
|
||||||
:size="smallFilters ? 'is-small' : null">
|
:size="smallFilters ? 'is-small' : null">
|
||||||
Reset View
|
{{ viewResetting ? "Working, please wait..." : "Reset View" }}
|
||||||
</b-button>
|
</b-button>
|
||||||
|
|
||||||
<b-button v-show="activeFilters"
|
<b-button v-show="activeFilters"
|
||||||
|
@ -247,6 +248,7 @@
|
||||||
addFilterShow: false,
|
addFilterShow: false,
|
||||||
addFilterTerm: '',
|
addFilterTerm: '',
|
||||||
smallFilters: false,
|
smallFilters: false,
|
||||||
|
viewResetting: false,
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
## sorting
|
## sorting
|
||||||
|
@ -480,6 +482,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
resetView() {
|
resetView() {
|
||||||
|
this.viewResetting = true
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
||||||
// use current url proper, plus reset param
|
// use current url proper, plus reset param
|
||||||
|
|
Loading…
Reference in a new issue