Browse Source

chore: tooltip correction

pull/9986/head
Raju Udava 2 days ago
parent
commit
b02f48c327
  1. 4
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue
  2. 4
      packages/nc-gui/components/smartsheet/column/LongTextOptions.vue
  3. 2
      packages/nc-gui/components/smartsheet/header/Menu.vue
  4. 2
      packages/nc-gui/components/smartsheet/header/UpdateDisplayValue.vue

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

@ -249,7 +249,9 @@ const uiTypesOptions = computed<(UiTypesType & { disabled?: boolean; tooltip?: s
...type,
disabled: isColumnTypeDisabled,
tooltip:
isColumnTypeDisabled && UITypesName[type.name] ? `${UITypesName[type.name]} field cannot be a display value field` : '',
isColumnTypeDisabled && UITypesName[type.name]
? `${UITypesName[type.name]} field cannot be used as display value field`
: '',
}
})
}

4
packages/nc-gui/components/smartsheet/column/LongTextOptions.vue

@ -190,7 +190,7 @@ watch(isPreviewEnabled, handleDisableSubmitBtn, {
<template #title>
{{
isPvColumn && !richMode
? `${UITypesName.RichText} field cannot be a display value field`
? `${UITypesName.RichText} field cannot be used as display value field`
: 'Rich text formatting is not supported when generate text using AI is enabled'
}}
</template>
@ -210,7 +210,7 @@ watch(isPreviewEnabled, handleDisableSubmitBtn, {
<template #title>
{{
isPvColumn && !isEnabledGenerateText
? `${UITypesName.AIPrompt} field cannot be a display value field`
? `${UITypesName.AIPrompt} field cannot be used as display value field`
: 'Generate text using AI is not supported when rich text formatting is enabled'
}}</template
>

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

@ -589,7 +589,7 @@ const onDeleteColumn = () => {
:disabled="isSupportedDisplayValueColumn(column)"
>
<template #title>
{{ `${columnTypeName(column)} field cannot be a display value field` }}
{{ `${columnTypeName(column)} field cannot be used as display value field` }}
</template>
<NcMenuItem :disabled="!isSupportedDisplayValueColumn(column)" @click="setAsDisplayValue">

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

@ -39,7 +39,7 @@ const filteredColumns = computed(() => {
disabled: !isSupportedDisplayValueColumn(column) && !column.pv,
ncItemTooltip:
!isSupportedDisplayValueColumn(column) && columnTypeName(column) && !column.pv
? `${columnTypeName(column)} field cannot be a display value field`
? `${columnTypeName(column)} field cannot be used as display value field`
: '',
column,
}

Loading…
Cancel
Save