This commit is contained in:
Oleksandr Turchyn committed 2024-10-07 15:30:39 +03:00
1 parent 711427521c
commit 9479771fc8
12 files changed
+243 -42

No files matched your search

+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}`
}
}
},