mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-03 10:24:30 +08:00
Fix inline edit for user groups title [SCI-12042]
This commit is contained in:
parent
6bb9a9f3c1
commit
eae02468c3
2 changed files with 3 additions and 2 deletions
|
@ -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()}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue