Browse Source

fix: lint errors and some review changes

pull/7173/head
Ramesh Mane 11 months ago
parent
commit
0bf3688244
  1. 2
      packages/nc-gui/components/dashboard/settings/DataSources.vue
  2. 2
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
  3. 2
      packages/nc-gui/components/smartsheet/details/Fields.vue
  4. 2
      packages/nc-gui/components/smartsheet/grid/Table.vue
  5. 2
      packages/nc-gui/components/tabs/Smartsheet.vue
  6. 1
      packages/nc-gui/helpers/parsers/parserHelpers.ts
  7. 2
      packages/nc-gui/lang/en.json

2
packages/nc-gui/components/dashboard/settings/DataSources.vue

@ -1,7 +1,7 @@
<script setup lang="ts">
import Draggable from 'vuedraggable'
import type { SourceType } from 'nocodb-sdk'
import { ClientType, DataSourcesSubTab, storeToRefs, useBase, useCommandPalette, useNuxtApp, isEeUI } from '#imports'
import { ClientType, DataSourcesSubTab, isEeUI, storeToRefs, useBase, useCommandPalette, useNuxtApp } from '#imports'
interface Props {
state: string

2
packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

@ -160,7 +160,7 @@ onMounted(() => {
message.info(t('msg.info.editingPKnotSupported'))
emit('cancel')
} else if (isSystemColumn(formState.value)) {
message.info(t('msg.info.editingSystemKeynotSupported'))
message.info(t('msg.info.editingSystemKeyNotSupported'))
emit('cancel')
}
}

2
packages/nc-gui/components/smartsheet/details/Fields.vue

@ -1081,7 +1081,7 @@ const onFieldOptionUpdate = () => {
</Draggable>
</div>
<Transition v-if="!changingField" name="slide-fade">
<div class="border-gray-200 border-l-1 nc-scrollbar-md nc-fields-height !overflow-y-auto">
<div v-if="!changingField" class="border-gray-200 border-l-1 nc-scrollbar-md nc-fields-height !overflow-y-auto">
<SmartsheetColumnEditOrAddProvider
v-if="activeField"
class="p-4 w-[25rem]"

2
packages/nc-gui/components/smartsheet/grid/Table.vue

@ -1716,8 +1716,8 @@ onKeyStroke('ArrowDown', onDown)
<NcMenuItem
v-else-if="contextMenuTarget && hasEditPermission"
class="nc-base-menu-item"
@click="clearSelectedRangeOfCells()"
:disabled="isSystemColumn(fields[contextMenuTarget.col])"
@click="clearSelectedRangeOfCells()"
>
<div v-e="['a:row:clear-range']" class="flex gap-2 items-center">
<GeneralIcon icon="closeBox" class="text-gray-500" />

2
packages/nc-gui/components/tabs/Smartsheet.vue

@ -171,7 +171,7 @@ watch([activeViewTitleOrId, activeTableId], () => {
<LazySmartsheetToolbar v-if="!isForm" />
<div class="flex flex-row w-full" style="height: calc(100% - var(--topbar-height))">
<Transition name="layout" mode="out-in">
<div class="flex flex-1 min-h-0 w-3/4">
<div v-if="openedViewsTab === 'view'" class="flex flex-1 min-h-0 w-3/4">
<div class="h-full flex-1 min-w-0 min-h-0 bg-white">
<LazySmartsheetGrid v-if="isGrid || !meta || !activeView" ref="grid" />

1
packages/nc-gui/helpers/parsers/parserHelpers.ts

@ -211,6 +211,7 @@ export const extractNextDefaultName = (namesData: string[], defaultName: string,
if (_defaultName === defaultName && !isNaN(Number(number?.trim()))) {
return Number(number?.trim())
}
return undefined
})
.filter((e) => e)
.sort((a, b) => {

2
packages/nc-gui/lang/en.json

@ -1210,7 +1210,7 @@
"goToNext": "Go to next",
"thankYou": "Thank you!",
"submittedFormData": "You have successfully submitted the form data.",
"editingSystemKeynotSupported": "Editing system key not supported"
"editingSystemKeyNotSupported": "Editing system key not supported"
},
"error": {

Loading…
Cancel
Save