|
|
@ -434,7 +434,7 @@ const [useProvideViewColumns, useViewColumns] = useInjectionState( |
|
|
|
scope: defineViewScope({ view: view.value }), |
|
|
|
scope: defineViewScope({ view: view.value }), |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
// sync with server if allowed
|
|
|
|
// sync with server if allowed
|
|
|
|
if (!isPublic.value && isUIAllowed('viewFieldEdit') && gridViewCols.value[id]?.id) { |
|
|
|
if (!isPublic.value && isUIAllowed('viewFieldEdit') && gridViewCols.value[id]?.id) { |
|
|
|
await $api.dbView.gridColumnUpdate(gridViewCols.value[id].id as string, { |
|
|
|
await $api.dbView.gridColumnUpdate(gridViewCols.value[id].id as string, { |
|
|
@ -451,6 +451,10 @@ const [useProvideViewColumns, useViewColumns] = useInjectionState( |
|
|
|
// fallback to reload
|
|
|
|
// fallback to reload
|
|
|
|
await loadViewColumns() |
|
|
|
await loadViewColumns() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}catch (e) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
watch( |
|
|
|
watch( |
|
|
|