fix: add checkedUUIDs computed value for WuttaGrid component
This commit is contained in:
parent
3c063e7d7b
commit
8bfbf0e570
1 changed files with 15 additions and 0 deletions
|
|
@ -403,6 +403,15 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
|
% if grid.checkable:
|
||||||
|
|
||||||
|
checkedUUIDs() {
|
||||||
|
return this.checkedRows.map((row) => row.uuid)
|
||||||
|
},
|
||||||
|
|
||||||
|
% endif
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
% if grid.sortable and grid.sort_multiple and grid.sort_on_backend:
|
% if grid.sortable and grid.sort_multiple and grid.sort_on_backend:
|
||||||
|
|
@ -517,6 +526,9 @@
|
||||||
% if grid.paginated and grid.paginate_on_backend:
|
% if grid.paginated and grid.paginate_on_backend:
|
||||||
this.pagerStats = response.data.pager_stats
|
this.pagerStats = response.data.pager_stats
|
||||||
% endif
|
% endif
|
||||||
|
% if grid.checkable:
|
||||||
|
this.checkedRows = []
|
||||||
|
% endif
|
||||||
this.loading = false
|
this.loading = false
|
||||||
} else {
|
} else {
|
||||||
this.$buefy.toast.open({
|
this.$buefy.toast.open({
|
||||||
|
|
@ -532,6 +544,9 @@
|
||||||
% if grid.paginated and grid.paginate_on_backend:
|
% if grid.paginated and grid.paginate_on_backend:
|
||||||
this.pagerStats = {}
|
this.pagerStats = {}
|
||||||
% endif
|
% endif
|
||||||
|
% if grid.checkable:
|
||||||
|
this.checkedRows = []
|
||||||
|
% endif
|
||||||
this.loading = false
|
this.loading = false
|
||||||
throw error
|
throw error
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue