Fix manage tags on task page [SCI-10768]

This commit is contained in:
Anton 2024-06-05 11:33:52 +02:00
parent 1c70e34d55
commit 9cb9618220
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>