Merge pull request #7629 from aignatov-bio/ai-sci-10768-fix-manage-tags-on-task-page

Fix manage tags on task page [SCI-10768]
This commit is contained in:
Martin Artnik 2024-06-05 12:34:14 +02:00 committed by GitHub
commit 4bc603fd80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -148,7 +148,8 @@
$('#experimentTable, .my-modules-protocols-index, #experiment-canvas')
.on('click', '.edit-tags-link', function() {
if (window.tagsModal) {
window.tagsModal.open($(this).closest('.module-large').data('module-url'));
const url = $(this).closest('.module-large').data('module-url') || $(this).attr('href');
window.tagsModal.open(url);
}
});
}

View file

@ -1,6 +1,6 @@
<div class="select-container">
<div class="edit-button-container hidden">
<a class="edit-tags-link" data-remote="true" href="<%= my_module_tags_edit_path(@my_module, format: :json) %>">
<a class="edit-tags-link" data-remote="true" href="<%= my_module_path(my_module, format: :json) %>">
<i class="sn-icon sn-icon-settings"></i>
<span class="hidden-xs"><%= t("my_modules.details.manage_tags") %></span>
</a>