diff --git a/packages/nc-gui-v2/components/cell/attachment/utils.ts b/packages/nc-gui-v2/components/cell/attachment/utils.ts index 7d9bf002ab..bbfa6b86e4 100644 --- a/packages/nc-gui-v2/components/cell/attachment/utils.ts +++ b/packages/nc-gui-v2/components/cell/attachment/utils.ts @@ -1,4 +1,4 @@ -import { notification } from 'ant-design-vue' +import { message } from 'ant-design-vue' import FileSaver from 'file-saver' import { computed, inject, ref, useApi, useFileDialog, useInjectionState, useProject, watch } from '#imports' import { ColumnInj, EditModeInj, MetaInj, ReadonlyInj } from '~/context' @@ -88,9 +88,7 @@ export const [useProvideAttachmentCell, useAttachmentCell] = useInjectionState( newAttachments.push(...data) } catch (e: any) { - notification.error({ - message: e.message || 'Some internal error occurred', - }) + message.error(e.message || 'Some internal error occurred') } } diff --git a/packages/nc-gui-v2/components/dashboard/settings/AppStore.vue b/packages/nc-gui-v2/components/dashboard/settings/AppStore.vue index 90b268e94a..b848d4456b 100644 --- a/packages/nc-gui-v2/components/dashboard/settings/AppStore.vue +++ b/packages/nc-gui-v2/components/dashboard/settings/AppStore.vue @@ -1,5 +1,5 @@ diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue index 7b967d147e..c03942f0c0 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/ShareView.vue @@ -2,7 +2,7 @@ import { useClipboard } from '@vueuse/core' import { ViewTypes } from 'nocodb-sdk' import { computed } from 'vue' -import { message, notification } from 'ant-design-vue' +import { message } from 'ant-design-vue' import { useNuxtApp } from '#app' import { useSmartsheetStoreOrThrow } from '#imports' import { extractSdkResponseErrorMsg } from '~/utils' @@ -70,13 +70,9 @@ async function saveAllowCSVDownload() { await $api.dbViewShare.update(shared.value.id, { meta, } as any) - notification.success({ - message: 'Successfully updated', - }) + message.success('Successfully updated') } catch (e: any) { - notification.error({ - message: await extractSdkResponseErrorMsg(e), - }) + message.error(await extractSdkResponseErrorMsg(e)) } if (allowCSVDownload?.value) { $e('a:view:share:enable-csv-download') @@ -90,13 +86,9 @@ const saveShareLinkPassword = async () => { await $api.dbViewShare.update(shared.value.id, { password: shared.value.password, }) - notification.success({ - message: 'Successfully updated', - }) + message.success('Successfully updated') } catch (e: any) { - notification.error({ - message: await extractSdkResponseErrorMsg(e), - }) + message.error(await extractSdkResponseErrorMsg(e)) } $e('a:view:share:enable-pwd') diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue index 9733c5d5ac..91dfc5fb82 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/SharedViewList.vue @@ -1,7 +1,7 @@ diff --git a/packages/nc-gui-v2/components/smartsheet/Form.vue b/packages/nc-gui-v2/components/smartsheet/Form.vue index 34ce001247..725256cb7c 100644 --- a/packages/nc-gui-v2/components/smartsheet/Form.vue +++ b/packages/nc-gui-v2/components/smartsheet/Form.vue @@ -1,7 +1,7 @@