Skip to content

Commit 62c2b3c

Browse files
committed
ui: add the missing label for the backup resource limit
The Resource Limits tab derives each label from the resource type name returned by listResourceLimits: $t('label.max' + item.resourcetypename.replace('_', '')) Resource.ResourceType declares backup("backup", 12), so the key looked up for that row is label.maxbackup, which exists in no locale. en.json has label.maxbackups, a different string used by the backup schedule form for how many backups to retain, and label.maxbackupstorage, which is resource type 13. With fallbackLocale 'en' and silentTranslationWarn enabled, the miss is silent and vue-i18n renders the key itself, so the row reads "label.maxbackup". The same key is used for the tagged-limit validation message, which shows the raw key for the same reason. Backup was the only one of the 17 ResourceType values without a label; the other 16 already resolve.
1 parent e38b7a7 commit 62c2b3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ui/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,6 +1540,7 @@
15401540
"label.max.primary.storage": "Max. primary (GiB)",
15411541
"label.max.secondary.storage": "Max. secondary (GiB)",
15421542
"label.max.migrations": "Max. migrations",
1543+
"label.maxbackup": "Max. Backups",
15431544
"label.maxbackups": "Max. Backups",
15441545
"label.maxbackupstorage": "Max. Backup Storage (GiB)",
15451546
"label.maxbackups.to.retain": "Max. Backups to retain",

0 commit comments

Comments
 (0)