From 9f70a3d6f85f3e50b21487e55275bca9331d3edd Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Wed, 16 Feb 2022 16:37:00 +0530 Subject: [PATCH] fix: enforce validation if table name invalid Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../components/utils/dlgTableCreate.vue | 205 +++++++++--------- 1 file changed, 104 insertions(+), 101 deletions(-) diff --git a/packages/nc-gui/components/utils/dlgTableCreate.vue b/packages/nc-gui/components/utils/dlgTableCreate.vue index 6bb4d092a9..a7a2ebf5b5 100644 --- a/packages/nc-gui/components/utils/dlgTableCreate.vue +++ b/packages/nc-gui/components/utils/dlgTableCreate.vue @@ -7,112 +7,114 @@ @keydown.enter="$emit('create', table)" > - - Create A New Table - + + + Create A New Table + - - + + - + -
- +
+ -
- - - - - - - - - - - - +
+ + + + + + + + + + + + +
-
- - + + - - - - Cancel - - - Submit - - + + + + Cancel + + + Submit + + + @@ -134,7 +136,8 @@ export default { 'created_at', 'updated_at'] }, - validateTableName + validateTableName, + valid: false } }, computed: {