mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Fix missing tooltip and hover effect for access modal role selection [SCI-8122] (#5140)
This commit is contained in:
parent
3c18e42d5e
commit
0fe3f5f38f
3 changed files with 8 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
|||
#user_assignments_modal {
|
||||
|
||||
.btn-role-select {
|
||||
padding: 0;
|
||||
padding: 0 0 0 16px;
|
||||
|
||||
&:hover {
|
||||
background-color: $color-white;
|
||||
background-color: $color-concrete;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
|
|
|
@ -6,7 +6,11 @@ module UserRolesHelper
|
|||
permissions = permission_group.constants.map { |const| permission_group.const_get(const) }
|
||||
|
||||
roles = user_roles_subset_by_permissions(permissions).order(id: :asc).pluck(:name, :id)
|
||||
roles = [[t('access_permissions.reset'), 'reset']] + roles if with_inherit
|
||||
if with_inherit
|
||||
roles = [[t('access_permissions.reset'), 'reset',
|
||||
t("access_permissions.partials.#{object.class.name.underscore}_member_field.reset_description")]] +
|
||||
roles
|
||||
end
|
||||
roles
|
||||
end
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<ul class="dropdown-menu dropdown-menu-right user-assignment-dropdown" aria-labelledby="userAccess_<%= user.id %>">
|
||||
<% user_roles_collection(assignable, with_inherit: with_inherit).each do |role| %>
|
||||
<li>
|
||||
<a href="#" data-turbolinks="false" class="user-role-selector" data-role-id="<%= role[1] %>">
|
||||
<a href="#" data-turbolinks="false" class="user-role-selector" title="<%= role[2] %>" data-role-id="<%= role[1] %>">
|
||||
<%= role[0] %>
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue