|
|
@ -48,11 +48,16 @@ const view = inject(ActiveViewInj) |
|
|
|
|
|
|
|
|
|
|
|
const { loadFormView, insertRow, formColumnData, formViewData, updateFormView } = useViewData(meta, view as any) |
|
|
|
const { loadFormView, insertRow, formColumnData, formViewData, updateFormView } = useViewData(meta, view as any) |
|
|
|
|
|
|
|
|
|
|
|
const { showAll, hideAll, saveOrUpdate } = useViewColumns(view, meta as any, async () => { |
|
|
|
const reloadEventHook = createEventHook<void>() |
|
|
|
|
|
|
|
provide(ReloadViewDataHookInj, reloadEventHook) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reloadEventHook.on(async () => { |
|
|
|
await loadFormView() |
|
|
|
await loadFormView() |
|
|
|
setFormData() |
|
|
|
setFormData() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { showAll, hideAll, saveOrUpdate } = useViewColumns(view, meta as any, async () => reloadEventHook.trigger()) |
|
|
|
|
|
|
|
|
|
|
|
const { syncLTARRefs } = useProvideSmartsheetRowStore( |
|
|
|
const { syncLTARRefs } = useProvideSmartsheetRowStore( |
|
|
|
meta, |
|
|
|
meta, |
|
|
|
ref({ |
|
|
|
ref({ |
|
|
|