Browse Source

fix: i18n for duplicate project context menu

pull/6512/head
Muhammed Mustafa 1 year ago
parent
commit
cbe237271a
  1. 4
      packages/nc-gui/components/dashboard/TreeView/index.vue

4
packages/nc-gui/components/dashboard/TreeView/index.vue

@ -55,6 +55,8 @@ const { loadTables } = projectStore
const { tables } = storeToRefs(projectStore) const { tables } = storeToRefs(projectStore)
const { t } = useI18n()
const { activeTable: _activeTable } = storeToRefs(useTablesStore()) const { activeTable: _activeTable } = storeToRefs(useTablesStore())
const { refreshCommandPalette } = useCommandPalette() const { refreshCommandPalette } = useCommandPalette()
@ -126,7 +128,7 @@ const duplicateTable = async (table: TableType) => {
openTable(newTable!) openTable(newTable!)
} else if (status === JobStatus.FAILED) { } else if (status === JobStatus.FAILED) {
message.error('Failed to duplicate table') message.error(t('msg.error.failedToDuplicateTable'))
await loadTables() await loadTables()
} }
}) })

Loading…
Cancel
Save