WIP: Generalize toggle_buttons for JavaScript usage (re-using toggle_button.vue)
What does this MR do?
No functional changes to the UI
- Generalize toggle_buttons for normal JavaScript usage (outside of Vue)
- There were two separate implementations for the cluster list and cluster edit page
- We also need this for the dynamic variable list, https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4110
Are there points in the code the reviewer needs to double check?
There is also a version of this MR that doesn't use toggle_button.vue
, https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16689
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary- Not a user-facing change
-
Tests added for this feature/bug - Review
-
Has been reviewed by Frontend
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together -
Internationalization required/considered -
End-to-end tests pass ( package-qa
manual pipeline job)
What are the relevant issue numbers?
Edited by Eric Eastwood