From 503d5783ce4b7971eb20ebc8b782004d507d3f3b Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Fri, 16 Aug 2024 15:41:40 +0000 Subject: [PATCH] fix(nc-gui): update source create job failed condition --- .../components/dashboard/settings/data-sources/CreateBase.vue | 4 ++-- .../workspace/integrations/forms/EditOrAddDatabase.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue b/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue index 416043ee4d..aff2587cd5 100644 --- a/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue +++ b/packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue @@ -233,8 +233,8 @@ const createSource = async () => { emit('sourceCreated') vOpen.value = false creatingSource.value = false - } else if (status === JobStatus.FAILED) { - message.error('Failed to create base') + } else if (data.status === JobStatus.FAILED) { + message.error(data?.data?.error?.message || 'Failed to create base') creatingSource.value = false } } diff --git a/packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue b/packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue index bc5cd6cf43..f594785e03 100644 --- a/packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue +++ b/packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue @@ -666,7 +666,7 @@ watch( :label="$t('labels.sqliteFile')" v-bind="validateInfos['dataSource.connection.connection.filename']" > - +