Remove bg- prefix from the state background
#16268
Open
+5
−1
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.
Summary
This resolves a console error by removing the
bg-prefix from the state background.Fixes #16267
Occurred changes and/or fixed issues
Remove
bg-prefix from the state backgroundTechnical notes summary
It appears that the
stateBackgroundis prefixed with abg-dashboard/shell/plugins/dashboard-store/resource-class.js
Lines 758 to 760 in bac4bc1
While the status indicator expects no prefix:
dashboard/pkg/rancher-components/src/components/utils/status.ts
Lines 3 to 28 in bac4bc1
Areas or cases that should be tested
See issue - there should be no error printed to the browser console when navigating to a deployment detail page. The status indicator should be correct.
Areas which could experience regressions
Any valid status that contains
bg-will have the matching string stripped.Screenshot/Video
Checklist
Admin,Standard UserandUser Base