Migrate admin labels actions dropdown to vue component
What does this MR do and why?
Migrate bootstrap dropdown in app/views/admin/labels/_label.html.haml
to pajamas component.
- Replaced bootstrap actions dropdown with compatible vue component
- Replaced affected confirmation dialog with compatible vue modal
- Modified delete label modal to be event based so that it can be used by both vue & non-vue UI
It's a part of Pajamas adoption project
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
Case1
- Goto
Admin Area -> Labels
- Verify label actions dropdown.
- Edit some label.
- Verify Delete button in the edit form.
Case2
- Open some project
- Goto
Manage -> Labels
- Verify delete action in the actions dropdown.
- Edit any label and verify the Delete button in the edit form.
Also covered by spec/features/admin/admin_labels_spec.rb
Related to #454688 (closed)
Edited by Taras Tadai