mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Merge pull request #917 from okriuchykhin/ok_SCI_1870
Fix adding users to a task [SCI-1870]
This commit is contained in:
commit
b0f8c36677
2 changed files with 9 additions and 5 deletions
|
@ -44,7 +44,7 @@ class UserMyModulesController < ApplicationController
|
|||
if @um.save
|
||||
# Create activity
|
||||
message = t(
|
||||
"activities.assign_user_to_module",
|
||||
'activities.assign_user_to_module',
|
||||
assigned_user: @um.user.full_name,
|
||||
module: @my_module.name,
|
||||
assigned_by_user: current_user.full_name
|
||||
|
@ -58,9 +58,11 @@ class UserMyModulesController < ApplicationController
|
|||
type_of: :assign_user_to_module
|
||||
)
|
||||
respond_to do |format|
|
||||
format.json {
|
||||
redirect_to :action => :index_edit, :format => :json
|
||||
}
|
||||
format.json do
|
||||
redirect_to my_module_users_edit_path(format: :json),
|
||||
turbolinks: false,
|
||||
status: 303
|
||||
end
|
||||
end
|
||||
else
|
||||
respond_to do |format|
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
<div class="modal-footer">
|
||||
<span class="pull-left">
|
||||
<% if is_admin_of_team(@experiment.project.team) %>
|
||||
<%= link_to t("experiments.canvas.full_zoom.modal_manage_users.invite_users_link"), team_path(@experiment.project.team.id) %>
|
||||
<%= link_to t("experiments.canvas.full_zoom.modal_manage_users.invite_users_link"),
|
||||
"/settings/teams/#{@experiment.project.team.id}",
|
||||
data: { turbolinks: false } %>
|
||||
<span><%=t "experiments.canvas.full_zoom.modal_manage_users.invite_users_details", team: @experiment.project.team.name %></span>
|
||||
<% else %>
|
||||
<i><%=t "experiments.canvas.full_zoom.modal_manage_users.contact_admins", team: @experiment.project.team.name %></i>
|
||||
|
|
Loading…
Reference in a new issue