mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +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,
|
||||
'3': I18n.l(record.created_at, format: :full_date),
|
||||
'4': record.user.active_status_str,
|
||||
'5': ApplicationController.new.render_to_string(
|
||||
'5': @view.controller.render_to_string(
|
||||
partial: 'users/settings/teams/user_dropdown',
|
||||
locals: {
|
||||
user_assignment: record,
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<%= form_with model: user_assignment,
|
||||
url: destroy_user_team_path(user_assignment, format: :json),
|
||||
data: { remote: true },
|
||||
method: :delete,
|
||||
data: { id: 'destroy-user-team-form' } do |f| %>
|
||||
data: { remote: true, id: 'destroy-user-team-form' },
|
||||
method: :delete do |f| %>
|
||||
<p><%= t("users.settings.user_teams.destroy_uo_message",
|
||||
user: user_assignment.user.full_name,
|
||||
team: user_assignment.assignable.name) %></p>
|
||||
|
|
Loading…
Reference in a new issue