From 8bfbf0e57084f4ef1e1758450ba792d00c5b5d99 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 18 Mar 2026 20:35:50 -0500 Subject: [PATCH] fix: add `checkedUUIDs` computed value for WuttaGrid component --- src/wuttaweb/templates/grids/vue_template.mako | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/wuttaweb/templates/grids/vue_template.mako b/src/wuttaweb/templates/grids/vue_template.mako index 34424e9..aaa19fd 100644 --- a/src/wuttaweb/templates/grids/vue_template.mako +++ b/src/wuttaweb/templates/grids/vue_template.mako @@ -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 })