1
0
Fork 0

fix: add once-button action for grid Reset View

This commit is contained in:
Lance Edgar 2024-08-22 19:43:42 -05:00
parent db5e4e88f6
commit 2e5feeb6f4

View file

@ -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