Browse Source

chore(nc-gui): lint

pull/9986/head
Ramesh Mane 2 days ago
parent
commit
5c5c9cfa19
  1. 7
      packages/nc-gui/components/smartsheet/header/Menu.vue
  2. 2
      packages/nc-gui/components/smartsheet/header/UpdateDisplayValue.vue

7
packages/nc-gui/components/smartsheet/header/Menu.vue

@ -3,11 +3,10 @@ import {
type ColumnReqType,
type ColumnType,
columnTypeName,
isVirtualCol,
partialUpdateAllowedTypes,
readonlyMetaAllowedTypes,
} from 'nocodb-sdk'
import { PlanLimitTypes, RelationTypes, UITypes, isLinksOrLTAR, isSystemColumn, isSupportedDisplayValueColumn } from 'nocodb-sdk'
import { PlanLimitTypes, RelationTypes, UITypes, isLinksOrLTAR, isSupportedDisplayValueColumn, isSystemColumn } from 'nocodb-sdk'
import { SmartsheetStoreEvents, isColumnInvalid } from '#imports'
const props = defineProps<{ virtual?: boolean; isOpen: boolean; isHiddenCol?: boolean }>()
@ -586,14 +585,14 @@ const onDeleteColumn = () => {
</div>
</NcMenuItem>
<NcTooltip
v-if="column && !column?.pv && !isHiddenCol && (column.uidt === UITypes.Formula || !isVirtualCol(column))"
v-if="column && !column?.pv && !isHiddenCol && (!virtual || column.uidt === UITypes.Formula)"
:disabled="isSupportedDisplayValueColumn(column)"
>
<template #title>
{{ `${columnTypeName(column)} field cannot be a display value field` }}
</template>
<NcMenuItem @click="setAsDisplayValue" :disabled="!isSupportedDisplayValueColumn(column)">
<NcMenuItem :disabled="!isSupportedDisplayValueColumn(column)" @click="setAsDisplayValue">
<div class="nc-column-set-primary nc-header-menu-item item">
<GeneralLoader v-if="isLoading === 'setDisplay'" size="regular" />
<GeneralIcon v-else icon="star" class="text-gray-500 !w-4.25 !h-4.25" />

2
packages/nc-gui/components/smartsheet/header/UpdateDisplayValue.vue

@ -41,7 +41,7 @@ const filteredColumns = computed(() => {
!isSupportedDisplayValueColumn(column) && columnTypeName(column)
? `${columnTypeName(column)} field cannot be a display value field`
: '',
column: column,
column,
}
})
})

Loading…
Cancel
Save