fixed ui and some bugs

This commit is contained in:
2026-06-28 21:48:17 +03:30
parent 34be7a66dc
commit 218d3e9f5e
25 changed files with 1374 additions and 371 deletions
@@ -39,7 +39,12 @@
<script setup lang="ts">
import SettingValueField from './SettingValueField.vue'
import { helpText, resolveSettingFieldType, type SettingFieldType } from './settingTypes'
import {
helpText,
KEY_LABEL_FALLBACK,
resolveSettingFieldType,
type SettingFieldType
} from './settingTypes'
import type { Const } from '@/model/configuration'
const props = defineProps<{
@@ -58,7 +63,9 @@ 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 || '—')
const title = computed(
() => props.row.title_fa || (props.row.key && KEY_LABEL_FALLBACK[props.row.key]) || props.row.key || '—'
)
const fieldType = computed<SettingFieldType>(() =>
resolveSettingFieldType({ key: props.row.key, type: props.row.type })