mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Merge pull request #6726 from sboursen-scinote/sb_SCI-9787
Fix activity for delete inventory item [SCI-9787]
This commit is contained in:
commit
843cff8e1a
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