Update license alert to use pajamas component
What does this MR do and why?
Describe in detail what your merge request does and why.
Update license alert to use pajamas component
- before it was not using the new View component
- converted it to use the pajamas component
Changelog: other
EE: true
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Navigate to Menu => Admin => Dashboard
- Apply the below patch
diff --git a/ee/app/views/admin/licenses/_breakdown.html.haml b/ee/app/views/admin/licenses/_breakdown.html.haml
index 8ac67bad3e5..cfddaa612dd 100644
--- a/ee/app/views/admin/licenses/_breakdown.html.haml
+++ b/ee/app/views/admin/licenses/_breakdown.html.haml
@@ -42,7 +42,7 @@
%h2.gl-mt-0{ data: { "qa-selector": "users_over_license" } }
= number_with_delimiter users_over_license
.text-uppercase.gl-mb-4= _('Users over License')
- - if users_over_license > 0
+ - if users_over_license > -1
= render Pajamas::AlertComponent.new(dismissible: false) do |c|
= c.body do
= s_('Your instance has exceeded your subscription\'s licensed user count.')
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #325397 (closed)
Edited by Alexander Turinske

