This commit is contained in:
Oleksandr Turchyn
2024-10-02 17:57:31 +03:00
parent 711427521c
commit 9479771fc8
12 changed files with 243 additions and 42 deletions
+2 -2
View File
@@ -312,6 +312,7 @@ export default {
},
computed: {
fieldNames: FieldType.computed.fieldNames,
fieldLabels: FieldType.computed.fieldLabels,
dropdownBgColor () {
return ['', null, 'transparent'].includes(this.backgroundColor) ? 'white' : this.backgroundColor
},
@@ -367,8 +368,7 @@ export default {
if (this.field.type === 'heading') {
return `${this.fieldNames[field.type]} ${typeIndex + 1}`
} else {
const suffix = { multiple: this.t('select'), radio: this.t('group') }[field.type] || this.t('field')
return `${this.fieldNames[field.type]} ${suffix} ${typeIndex + 1}`
return `${this.fieldLabels[field.type]} ${typeIndex + 1}`
}
}
},