mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Fix rendering team table [SCI-9039] (#5967)
* Fix rendering team table [SCI-9039] * Remove unused def_delegator
This commit is contained in:
parent
a05bd7a6dd
commit
e9ac5bed82
2 changed files with 3 additions and 4 deletions
|
@ -66,7 +66,7 @@ class TeamUsersDatatable < CustomDatatable
|
||||||
'2': record.user_role.name,
|
'2': record.user_role.name,
|
||||||
'3': I18n.l(record.created_at, format: :full_date),
|
'3': I18n.l(record.created_at, format: :full_date),
|
||||||
'4': record.user.active_status_str,
|
'4': record.user.active_status_str,
|
||||||
'5': ApplicationController.new.render_to_string(
|
'5': @view.controller.render_to_string(
|
||||||
partial: 'users/settings/teams/user_dropdown',
|
partial: 'users/settings/teams/user_dropdown',
|
||||||
locals: {
|
locals: {
|
||||||
user_assignment: record,
|
user_assignment: record,
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
<%= form_with model: user_assignment,
|
<%= form_with model: user_assignment,
|
||||||
url: destroy_user_team_path(user_assignment, format: :json),
|
url: destroy_user_team_path(user_assignment, format: :json),
|
||||||
data: { remote: true },
|
data: { remote: true, id: 'destroy-user-team-form' },
|
||||||
method: :delete,
|
method: :delete do |f| %>
|
||||||
data: { id: 'destroy-user-team-form' } do |f| %>
|
|
||||||
<p><%= t("users.settings.user_teams.destroy_uo_message",
|
<p><%= t("users.settings.user_teams.destroy_uo_message",
|
||||||
user: user_assignment.user.full_name,
|
user: user_assignment.user.full_name,
|
||||||
team: user_assignment.assignable.name) %></p>
|
team: user_assignment.assignable.name) %></p>
|
||||||
|
|
Loading…
Reference in a new issue