3
0
Fork 0

fix: add checkedUUIDs computed value for WuttaGrid component

This commit is contained in:
Lance Edgar 2026-03-18 20:35:50 -05:00
parent 3c063e7d7b
commit 8bfbf0e570

View file

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