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" />
|
||||
|
||||
<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
|
||||
|
|
Loading…
Reference in a new issue