Hide cancel button in the thread view

This commit is contained in:
2018-11-05 21:04:47 +09:00
parent 960b1e4b92
commit 1f8ad4fbe1
4 changed files with 8 additions and 7 deletions

View File

@ -6,12 +6,13 @@ component NewPostArea(user *arn.User, placeholder string)
textarea#new-post-text.post-content(placeholder=placeholder + "...", aria-label=placeholder)
component NewPostActions(parentType string, parentID string)
component NewPostActions(parentType string, parentID string, cancelButton bool)
#new-post-actions.buttons
button#reply-button.mountable.action(data-action="createPost", data-trigger="click", data-parent-type=parentType, data-parent-id=parentID)
Icon("mail-reply")
span Reply
button#reply-cancel-button.mountable.action(data-action="cancelReply", data-trigger="click")
Icon("close")
span Cancel
if cancelButton
button#reply-cancel-button.mountable.action(data-action="cancelReply", data-trigger="click")
Icon("close")
span Cancel