Browse Source

wip(gui-v2): submit form logic

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
18dfe80df5
  1. 6
      packages/nc-gui-v2/components/smartsheet/Form.vue

6
packages/nc-gui-v2/components/smartsheet/Form.vue

@ -46,6 +46,7 @@ const {
paginationData, paginationData,
formattedData: data, formattedData: data,
loadFormView, loadFormView,
insertRow,
formColumnData, formColumnData,
formViewData, formViewData,
changePage, changePage,
@ -77,7 +78,10 @@ const formView = ref({})
function updateView() {} function updateView() {}
function submitForm() {} function submitForm() {
// TODO: validation
insertRow(formState)
}
function isDbRequired(column: Record<string, any>) { function isDbRequired(column: Record<string, any>) {
if (hiddenCols.includes(column.fk_column_id)) { if (hiddenCols.includes(column.fk_column_id)) {

Loading…
Cancel
Save