Fix comments in shareable tasks [SCI-9476]

This commit is contained in:
Anton 2023-10-16 09:54:34 +02:00
parent 0a5686d9bc
commit cb954ed605
4 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ module SecondaryNavigationHelper
end
def is_module_results?
%w(index).include?(action_name) && controller_name == 'results'
(%w(index).include?(action_name) && controller_name == 'results') || action_name == 'results_show'
end
def is_module_activities?

View file

@ -1,5 +1,5 @@
<% user= nil %>
<% oject.comments.order(created_at: :asc).each do |comment| %>
<% object.comments.order(created_at: :asc).each do |comment| %>
<div class="comment-container" data-comment-id="<%= comment.id %>">
<% unless user == comment.user%>
<div class="comment-header">

View file

@ -14,7 +14,7 @@
<div class="sidebar-body">
<% if step.comments.present? %>
<div class="comments-list">
<%= render partial: "shareable_links/my_modules/comments_list", locals: { step: step } %>
<%= render partial: "shareable_links/my_modules/comments_list", locals: { object: step } %>
</div>
<% else %>
<div class="no-comments-placeholder !block">

View file

@ -8,7 +8,7 @@
</div>
<% end %>
<% if element.text.present? %>
<div class="flex rounded min-h-[2.25rem] mb-4 relative group/text_container content__text-body max-w-[90ch]">
<div class="rounded min-h-[2.25rem] mb-4 relative group/text_container content__text-body max-w-[90ch]">
<%= smart_annotation_text(element.shareable_tinymce_render(:text)) %>
</div>
<% else %>