Commit 9d6c059
fix(visual-editor): bridge DB field type to hardcoded translation key
The previous commit used translateService.instant(dbType.type) directly,
but DB type strings like "ShowPdf" don't match the translation keys
like "ShowPDF". Now bridge via the enum member name: look up the DB
type by id, then find the hardcoded entry whose enum name matches
(case-insensitive), and use its name as the translation key. Falls
back to the raw DB type string for unknown types.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b701184 commit 9d6c059
1 file changed
Lines changed: 9 additions & 3 deletions
File tree
- eform-client/src/app/modules/eforms/eform-visual-editor/components/eform-visual-editor-elements/field/visual-editor-field
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
87 | | - | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
| |||
0 commit comments