Browse Source

fix: i18n corrections

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/2830/head
Raju Udava 2 years ago committed by Pranav C
parent
commit
933da7834e
  1. 15
      packages/nc-gui-v2/components/dashboard/TreeView.vue
  2. 17
      packages/nc-gui-v2/components/dlg/TableRename.vue

15
packages/nc-gui-v2/components/dashboard/TreeView.vue

@ -243,12 +243,17 @@ const showRenameTableDlg = (table: TableType) => {
v-t="['c:table:rename:navdraw:right-click']"
class="!text-xs"
@click="showRenameTableDlg(contextMenuTarget.value)"
>Table Rename</a-menu-item
>
<a-menu-item class="!text-xs" @click="deleteTable(contextMenuTarget.value)">Table Delete</a-menu-item>
{{ $t('general.rename') }}
</a-menu-item>
<a-menu-item class="!text-xs" @click="deleteTable(contextMenuTarget.value)">
{{ $t('general.delete') }}
</a-menu-item>
</template>
<template v-else>
<a-menu-item v-t="['a:table:refresh:navdraw']" class="!text-xs" @click="loadTables">Tables Refresh</a-menu-item>
<a-menu-item v-t="['a:table:refresh:navdraw']" class="!text-xs" @click="loadTables">
{{ $t('general.reload') }}
</a-menu-item>
</template>
</a-menu>
</template>
@ -290,4 +295,8 @@ const showRenameTableDlg = (table: TableType) => {
:deep(.nc-filter-input input::placeholder) {
@apply !text-xs;
}
:deep(.ant-dropdown-menu-title-content) {
@apply !p-2;
}
</style>

17
packages/nc-gui-v2/components/dlg/TableRename.vue

@ -92,7 +92,12 @@ const renameTable = async () => {
</script>
<template>
<a-modal v-model:visible="dialogShow" title="Rename Table" @keydown.esc="dialogShow = false" @finish="renameTable">
<a-modal
v-model:visible="dialogShow"
:title="$t('activity.renameTable')"
@keydown.esc="dialogShow = false"
@finish="renameTable"
>
<template #footer>
<a-button key="back" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button>
<a-button key="submit" type="primary" :loading="loading" @click="renameTable">{{ $t('general.submit') }}</a-button>
@ -100,9 +105,15 @@ const renameTable = async () => {
<div class="pl-10 pr-10 pt-5">
<a-form :model="formState" name="create-new-table-form">
<!-- hint="Enter table name" -->
<div class="mb-2">Table Name</div>
<div class="mb-2">{{ $t('msg.info.enterTableName') }}</div>
<a-form-item v-bind="validateInfos.title">
<a-input ref="inputEl" v-model:value="formState.title" hide-details :placeholder="$t('msg.info.enterTableName')" />
<a-input
ref="inputEl"
v-model:value="formState.title"
hide-details
:placeholder="$t('msg.info.enterTableName')"
@keydown.enter="renameTable"
/>
</a-form-item>
</a-form>
</div>

Loading…
Cancel
Save