Fix inline edit for user groups title [SCI-12042]

This commit is contained in:
Anton 2025-07-30 11:36:11 +02:00
parent 6bb9a9f3c1
commit eae02468c3
2 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,9 @@ let inlineEditing = (function() {
}
if ($(container).data('params-group') === 'protocol' && $(container).hasClass('inline-editing-container')) {
$('.view-mode').text(I18n.t('protocols.draft_name', { name: $('.view-mode').text() }));
container.find('.view-mode').text(I18n.t('protocols.draft_name', { name: container.find('.view-mode').text() }));
} else if ($(container).data('params-group') === 'user_group' && $(container).hasClass('inline-editing-container')) {
container.find('.view-mode').text(`${I18n.t('user_groups.show.title')} ${container.find('.view-mode').text()}`);
}
}

View file

@ -13,7 +13,6 @@
<% end %>
<h3 class="m-0 flex gap-0.5 items-center">
<% if can_manage_team?(@team) %>
<span class="shrink-0 mt-1"><%= t('user_groups.show.title') %></span>
<%= render partial: "shared/inline_editing",
locals: {
initial_value: @user_group.name,