Commit 62c2b3c
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1540 | 1540 | | |
1541 | 1541 | | |
1542 | 1542 | | |
| 1543 | + | |
1543 | 1544 | | |
1544 | 1545 | | |
1545 | 1546 | | |
| |||
0 commit comments