comments: put sticky option in popup menu instead of in edit form.
Put the option to sticky a comment in the "..." popup menu instead of in the comment edit form. This makes it more consistent with deleting or undeleting a comment. Also fix a bug where the comment undelete icon didn't show up due to a typo.
This commit is contained in:
@@ -7,8 +7,8 @@ module ComponentsHelper
|
||||
render PostPreviewComponent.with_collection(posts, **options)
|
||||
end
|
||||
|
||||
def render_comment(comment, **options)
|
||||
render CommentComponent.new(comment: comment, **options)
|
||||
def render_comment(comment, current_user:, **options)
|
||||
render CommentComponent.new(comment: comment, current_user: current_user, **options)
|
||||
end
|
||||
|
||||
def render_comment_section(post, **options)
|
||||
|
||||
Reference in New Issue
Block a user