2019-08-31 20:51:14 -07:00

23 lines
556 B
Handlebars

{{#comment/comment-stream
comments=comments
commentTypes=commentTypes
updateCommentInStream=(action "handleStreamAction" streamActions.modify)
deleteCommentFromStream=(action "handleStreamAction" streamActions.destroy)
addCommentToStream=(action "handleStreamAction" streamActions.add)
as |stream|
}}
{{stream.header}}
{{#stream.new}}
+ Add a comment...
{{/stream.new}}
{{#each stream.comments as |comment|}}
{{#stream.item comment=comment}}
{{comment.text}}
{{/stream.item}}
{{/each}}
{{/comment/comment-stream}}