Backports EE changes from disabling branch unprotect UI
What
Creates disabled_for(action_prefix, object)
helper, updates buttons.scss
so .dropdown-menu-toggle.disabled
behaves like [disabled].dropdown-menu-toggle
, and avoids passing unnecessary can_admin_project
locals.
Adds disabled
option to the dropwdown_toggle
helepr and avoids passing unnecessary can_admin_project
locals.
Why
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5296 created changes which should also be in CE
Does this MR meet the acceptance criteria?
-
Tests added for this feature/bug - Review
-
Has been reviewed by Frontend -
Has been reviewed by Backend
-
What are the relevant issue numbers?
Edited by Grzegorz Bizon