mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-03 11:40:37 +08:00
Change current_team to target team, add id param to link
This commit is contained in:
parent
9ed4a442d8
commit
38c198705c
2 changed files with 4 additions and 4 deletions
|
|
@ -122,10 +122,10 @@ module Users
|
|||
Activities::CreateActivityService
|
||||
.call(activity_type: :invite_user_to_team,
|
||||
owner: current_user,
|
||||
subject: current_team,
|
||||
team: current_team,
|
||||
subject: @team,
|
||||
team: @team,
|
||||
message_items: {
|
||||
team: current_team.id,
|
||||
team: @team.id,
|
||||
user_invited: user.id,
|
||||
role: user_team.role_str
|
||||
})
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ module GlobalActivitiesHelper
|
|||
# Not link for now
|
||||
return current_value
|
||||
when Team
|
||||
path = projects_path
|
||||
path = projects_path(team: obj.id)
|
||||
when Repository
|
||||
path = repository_path(obj)
|
||||
when RepositoryRow
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue