Removes glimpse, adds copy ids, cleans up error stuff, and supports ledyard

This commit is contained in:
2024-08-23 21:37:35 -07:00
parent ddb1d99cd3
commit 87ea623318
6 changed files with 27 additions and 19 deletions

View File

@@ -293,7 +293,8 @@
(apply com/breadcrumbs {} (:breadcrumbs grid-spec))
(when (:above-grid grid-spec)
( (:above-grid grid-spec) request))
[:div {:x-data (hx/json {:selected [] :all_selected false})
[:div {:x-data (hx/json {:selected [] :all_selected false :type (:entity-name grid-spec)})
"x-on:copy" "if (selected.length > 0) {$clipboard(JSON.stringify({'type': type, 'selected': selected}))}"
"x-on:client-selected.document" "selected=[]; all_selected=false"
"x-bind:hx-vals" "JSON.stringify({selected: $data.selected, 'all-selected': $data.all_selected})"
:x-init "$watch('selected', s=> $dispatch('selectedChanged', {selected: s, all_selected: all_selected}) );