mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 06:44:55 +08:00
Fix activity for delete inventory item [SCI-9787]
This commit is contained in:
parent
25b59b3e4e
commit
b242a42da7
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,12 @@
|
|||
team,
|
||||
subject.repository.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
|
||||
title: subject.repository.name) %>
|
||||
<% elsif type_of == 'delete_item_inventory' && values.dig('message_items', 'repository', 'id') %>
|
||||
<% repository = Repository.find(values.dig('message_items', 'repository', 'id')) %>
|
||||
<%= route_to_other_team(repository_path(repository.id, team: repository.team.id),
|
||||
team,
|
||||
repository.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
|
||||
title: repository.name) %>
|
||||
<% else %>
|
||||
<span title="<%= breadcrumbs['repository'] %>">
|
||||
<%= breadcrumbs['repository']&.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
|
||||
|
|
Loading…
Reference in a new issue