Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are now double. should we rename the reference instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both keys are built dynamically from different API names, so I don't think either can be renamed without breaking the other screen:
label.max+ the resource type name (ResourceLimitTab.vue:32), and for type 12 that name isbackup, givinglabel.maxbackup.fieldsarray instorage.js('maxbackups'), andAutogenView.vueturns each intolabel.+ the field name, givinglabel.maxbackups.Both
backupandmaxbackupscome from the API response, so the keys follow them.Snapshots already work the same way:
label.maxsnaps(snapshot schedule field) andlabel.maxsnapshot(resource limit) both read "Max. Snapshots".If you'd rather not have the duplicate, the alternative is to special-case backup in
ResourceLimitTab.vueso it reuseslabel.maxbackups, but that adds code to avoid one string. Happy to do that if you prefer.