Browse Source

fix: correct position for i18n include

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3445/head
Raju Udava 2 years ago
parent
commit
686de21eae
  1. 2
      packages/nc-gui-v2/composables/useExpandedFormStore.ts
  2. 3
      packages/nc-gui-v2/composables/useSmartsheetRowStore.ts
  3. 3
      packages/nc-gui-v2/composables/useTable.ts

2
packages/nc-gui-v2/composables/useExpandedFormStore.ts

@ -17,10 +17,10 @@ import {
} from '#imports'
import type { Row } from '~/composables'
const { t } = useI18n()
const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((meta: Ref<TableType>, row: Ref<Row>) => {
const { $e, $state, $api } = useNuxtApp()
const { api, isLoading: isCommentsLoading, error: commentsError } = useApi()
const { t } = useI18n()
const commentsOnly = ref(false)
const commentsAndLogs = ref<any[]>([])

3
packages/nc-gui-v2/composables/useSmartsheetRowStore.ts

@ -20,10 +20,11 @@ import {
useVirtualCell,
} from '#imports'
const { t } = useI18n()
const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState((meta: Ref<TableType>, row: MaybeRef<Row>) => {
const { $api } = useNuxtApp()
const { t } = useI18n()
const { project } = useProject()
const { metas } = useMetas()

3
packages/nc-gui-v2/composables/useTable.ts

@ -6,14 +6,13 @@ import { useNuxtApp } from '#app'
import { TabType } from '~/composables/useTabs'
import { SYSTEM_COLUMNS, extractSdkResponseErrorMsg, useProject } from '#imports'
const { t } = useI18n()
export function useTable(onTableCreate?: (tableMeta: TableType) => void) {
const table = reactive<{ title: string; table_name: string; columns: string[] }>({
title: '',
table_name: '',
columns: SYSTEM_COLUMNS,
})
const { t } = useI18n()
const { $e, $api } = useNuxtApp()
const { getMeta, removeMeta } = useMetas()
const { loadTables } = useProject()

Loading…
Cancel
Save