Fix bindings not working with grid conditions

This commit is contained in:
Andrew Kingston 2024-06-27 15:38:22 +01:00
parent 1ccdb4de56
commit 8e83046321
No known key found for this signature in database
5 changed files with 8 additions and 2 deletions

View File

@ -12,6 +12,7 @@
export let listItemKey export let listItemKey
export let draggable = true export let draggable = true
export let focus export let focus
export let bindings = []
let zoneType = generate() let zoneType = generate()
@ -126,6 +127,7 @@
anchor={anchors[draggableItem.id]} anchor={anchors[draggableItem.id]}
item={draggableItem.item} item={draggableItem.item}
{...listTypeProps} {...listTypeProps}
{bindings}
on:change={onItemChanged} on:change={onItemChanged}
/> />
</div> </div>

View File

@ -7,6 +7,7 @@
export let item export let item
export let anchor export let anchor
export let bindings
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
@ -39,8 +40,9 @@
<div class="list-item-body"> <div class="list-item-body">
<div class="list-item-left"> <div class="list-item-left">
<EditComponentPopover <EditComponentPopover
{anchor}
componentInstance={item} componentInstance={item}
{bindings}
{anchor}
{parseSettings} {parseSettings}
on:change on:change
> >

View File

@ -9,6 +9,7 @@
export let value export let value
export let componentInstance export let componentInstance
export let bindings
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
let primaryDisplayColumnAnchor let primaryDisplayColumnAnchor
@ -63,6 +64,7 @@
items={columns.sortable} items={columns.sortable}
listItemKey={"_id"} listItemKey={"_id"}
listType={FieldSetting} listType={FieldSetting}
{bindings}
/> />
<style> <style>

View File

@ -7308,7 +7308,6 @@
{ {
"type": "columns/grid", "type": "columns/grid",
"key": "columns", "key": "columns",
"nested": true,
"resetOn": "table" "resetOn": "table"
} }
] ]

View File

@ -91,6 +91,7 @@ export const initialise = context => {
// Recompute all metadata if conditions change // Recompute all metadata if conditions change
conditions.subscribe($conditions => { conditions.subscribe($conditions => {
console.log($conditions)
console.log("recomputing all conditions") console.log("recomputing all conditions")
let metadata = {} let metadata = {}
if ($conditions.length) { if ($conditions.length) {