Fix icon and alignment of weight widget in sidebar when locked
Compare changes
@@ -4,9 +4,9 @@
When weight is a locked feature, the icon and alignment are wrong for the weight widget in a collapsed issue sidebar.
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Before | After |
---|---|
![]() |
![]() |
diff --git a/ee/app/views/shared/issuable/_sidebar_weight.html.haml b/ee/app/views/shared/issuable/_sidebar_weight.html.haml
index 566a43e882ae..df34c3ab7b62 100644
--- a/ee/app/views/shared/issuable/_sidebar_weight.html.haml
+++ b/ee/app/views/shared/issuable/_sidebar_weight.html.haml
@@ -1,5 +1,5 @@
- if issuable_sidebar[:supports_weight]
- if issuable_sidebar[:features_available][:issue_weights]
- .js-sidebar-weight-widget-root{ data: { can_edit: can_edit, project_path: project_path, issue_iid: issue_iid } }
- - else
= render 'shared/promotions/promote_issue_weights'
+ - else
+ .js-sidebar-weight-widget-root{ data: { can_edit: can_edit, project_path: project_path, issue_iid: issue_iid } }
None
instead of No
.Related to #469616 (closed)