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
|
||||
|
||||
% if grid.checkable:
|
||||
|
||||
checkedUUIDs() {
|
||||
return this.checkedRows.map((row) => row.uuid)
|
||||
},
|
||||
|
||||
% endif
|
||||
|
||||
},
|
||||
|
||||
% if grid.sortable and grid.sort_multiple and grid.sort_on_backend:
|
||||
|
|
@ -517,6 +526,9 @@
|
|||
% if grid.paginated and grid.paginate_on_backend:
|
||||
this.pagerStats = response.data.pager_stats
|
||||
% endif
|
||||
% if grid.checkable:
|
||||
this.checkedRows = []
|
||||
% endif
|
||||
this.loading = false
|
||||
} else {
|
||||
this.$buefy.toast.open({
|
||||
|
|
@ -532,6 +544,9 @@
|
|||
% if grid.paginated and grid.paginate_on_backend:
|
||||
this.pagerStats = {}
|
||||
% endif
|
||||
% if grid.checkable:
|
||||
this.checkedRows = []
|
||||
% endif
|
||||
this.loading = false
|
||||
throw error
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue