This commit is contained in:
2026-07-02 00:30:42 +03:30
parent 3bf249377f
commit 48a45bf5bb
3 changed files with 120 additions and 15 deletions
@@ -41,7 +41,7 @@
import SettingValueField from './SettingValueField.vue'
import {
helpText,
KEY_LABEL_FALLBACK,
resolveSettingTitle,
resolveSettingFieldType,
type SettingFieldType
} from './settingTypes'
@@ -63,9 +63,7 @@ const emit = defineEmits<{
const settingKey = computed(() => props.row.key ?? '')
const settingType = computed(() => props.row.type)
const description = computed(() => props.row.description)
const title = computed(
() => props.row.title_fa || (props.row.key && KEY_LABEL_FALLBACK[props.row.key]) || props.row.key || '—'
)
const title = computed(() => resolveSettingTitle(props.row))
const fieldType = computed<SettingFieldType>(() =>
resolveSettingFieldType({ key: props.row.key, type: props.row.type })