Browse Source

fix(nc-gui): update source create job failed condition

pull/9265/head
Ramesh Mane 3 months ago
parent
commit
503d5783ce
  1. 4
      packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue
  2. 2
      packages/nc-gui/components/workspace/integrations/forms/EditOrAddDatabase.vue

4
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
}
}

2
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']"
>
<a-input v-model:value="(formState.dataSource.connection as SQLiteConnection).connection.filename" />
<a-input v-model:value="(formState.dataSource.connection as SQLiteConnection).connection.filename" placeholder="Enter absolute file path"/>
</a-form-item>
</a-col>
</a-row>

Loading…
Cancel
Save