Skip to content

Commit 17f75fe

Browse files
committed
allow removal of alchemy_roles in UI
The clear buttons have disappeared due to a change in alchemy_cms: AlchemyCMS/alchemy_cms#3252 Since we want to allow admin users to remove roles from users, we need to add the clear buttons here. (cherry picked from commit b916c4f)
1 parent c6e57ce commit 17f75fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/views/alchemy/admin/users/_fields.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
input_html: {
1515
multiple: true,
1616
is: 'alchemy-select',
17-
class: 'alchemy_selectbox'
17+
class: 'alchemy_selectbox',
18+
data: { allow_clear: true }
1819
},
1920
as: 'select' %>
2021
<% end %>

0 commit comments

Comments
 (0)