diff --git a/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/button-cell.svelte b/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/button-cell.svelte index 9102ada84..c91d3f2df 100644 --- a/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/button-cell.svelte +++ b/apps/frontend/src/lib/components/blocks/grid-view/editable-cell/button-cell.svelte @@ -1,7 +1,7 @@
@@ -58,3 +71,37 @@ {/if}
+ + + + + Confirm to update + The following fields will be updated when you click the button. + + + {#if field.option.isSome()} + {#each field.option.unwrap().action.values as value} + {@const field = value.field ? $table.schema.getFieldById(new FieldIdVo(value.field)).unwrap() : undefined} +
+ + {#if field} + + {/if} +
+ {/each} + {/if} + + + (confirm = false)}>Cancel + Continue + +
+
diff --git a/packages/table/src/modules/schema/fields/variants/button-field/button-field.vo.ts b/packages/table/src/modules/schema/fields/variants/button-field/button-field.vo.ts index c65689f77..e5dddfec7 100644 --- a/packages/table/src/modules/schema/fields/variants/button-field/button-field.vo.ts +++ b/packages/table/src/modules/schema/fields/variants/button-field/button-field.vo.ts @@ -114,6 +114,10 @@ export class ButtonField extends AbstractField