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" />
<b-button @click="resetView()"
:disabled="viewResetting"
icon-pack="fas"
icon-left="undo"
:size="smallFilters ? 'is-small' : null">
Reset View
{{ viewResetting ? "Working, please wait..." : "Reset View" }}
</b-button>
<b-button v-show="activeFilters"
@ -247,6 +248,7 @@
addFilterShow: false,
addFilterTerm: '',
smallFilters: false,
viewResetting: false,
% endif
## sorting
@ -480,6 +482,7 @@
},
resetView() {
this.viewResetting = true
this.loading = true
// use current url proper, plus reset param