Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

set the correct inputs for user autocompleter component

bsatarnejadbd18ff02af11
diff --git a/app/views/groups/_users.html.erb b/app/views/groups/_users.html.erb
index dae1f5ef1ab..721ab180e3f 100644
--- a/app/views/groups/_users.html.erb
+++ b/app/views/groups/_users.html.erb
@@ -53,10 +53,14 @@ See COPYRIGHT and LICENSE files for more details.
<fieldset class="form--fieldset">
<legend class="form--fieldset-legend"><%=t(:label_user_new)%></legend>
<div class="form--field -vertical">
- <op-user-autocompleter data-name='"user_ids"'
- data-additional-filter="<%= autocompleter_filters(@group).to_json %>"
- class="new-group-members--autocomplete">
- </op-user-autocompleter>
+ <%=
+ angular_component_tag 'op-user-autocompleter',
+ inputs: {
+ additionalFilters: autocompleter_filters(@group),
+ name: 'user_ids',
+ },
+ class: "new-group-members--autocomplete"
+ %>
</div>
<div>
<%= styled_button_tag t(:button_add),