Skip to content

Commit 9f4ccd7

Browse files
committed
use report_button instead of flag_modal
1 parent dc83397 commit 9f4ccd7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • decidim-comments/app/cells/decidim/comments/comment

decidim-comments/app/cells/decidim/comments/comment/show.erb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@
2626
<ul class="dropdown dropdown__bottom divide-y divide-gray-3 px-4">
2727
<% unless reloaded? %>
2828
<li>
29-
<button type="button" class="dropdown__item" data-dialog-open="<%= current_user.present? ? "flagModalComment#{model.id}" : "loginModal" %>" title="<%= t("decidim.components.comment.report.action") %>" aria-controls="<%= current_user.present? ? "flagModalComment#{model.id}" : "loginModal" %>" aria-haspopup="dialog" tabindex="0">
30-
<%= icon "flag-line" %>
31-
<span><%= t("decidim.components.comment.report.action") %></span>
32-
</button>
29+
<%= cell("decidim/report_button", model, only_button: true, button_classes: "dropdown__item flex-row-reverse" ) %>
3330
</li>
3431
<% end %>
3532
<li>
@@ -83,7 +80,8 @@
8380
</div>
8481

8582
<% if current_user.present? %>
86-
<%= cell("decidim/flag_modal", model, modal_id: "flagModalComment#{model.id}") %>
83+
<%= cell("decidim/report_button", model).flag_modal %>
84+
<%#= cell("decidim/flag_modal", model, modal_id: "flagModalComment#{model.id}") %>
8785
<% end %>
8886
<% if model.authored_by?(current_user) %>
8987
<%= cell("decidim/comments/edit_comment_modal_form", model) %>

0 commit comments

Comments
 (0)