48 lines
1.2 KiB
Handlebars
Raw Normal View History

2019-08-31 20:51:14 -07:00
<button
class="nacho-button nacho-button--tertiary"
onclick={{action "showComments"}}
>
{{fa-icon
"pencil-alt"
classNames="pull-right wh-clickable-icon"
}}
</button>
2017-10-18 17:38:51 -07:00
{{#if isShowingFieldComment}}
{{#if getComments.last.isRunning}}
{{#modal-dialog
overlayClass="notification-overlay"
2017-10-18 17:38:51 -07:00
containerClassNames=containerClassNames
onClose=(action "hideComments")
}}
{{#comment/comment-stream
comments=comments
commentTypes=commentTypes
updateCommentInStream=(action "handleSchemaComment" SchemaCommentActions.Modify)
deleteCommentFromStream=(action "handleSchemaComment" SchemaCommentActions.Destroy)
2019-08-31 20:51:14 -07:00
addCommentToStream=(action "handleSchemaComment" SchemaCommentActions.Add)
as |stream|
2017-10-18 17:38:51 -07:00
}}
{{#stream.header}}
Comments for <strong>{{schema.fieldName}}</strong>
{{/stream.header}}
{{#stream.new}}
+ Add a comment...
{{/stream.new}}
{{#each stream.comments as |comment|}}
{{#stream.item comment=comment}}
{{comment.html}}
2017-10-18 17:38:51 -07:00
{{/stream.item}}
{{/each}}
{{/comment/comment-stream}}
{{/modal-dialog}}
{{else}}
{{pendulum-ellipsis-animation}}
2017-10-18 17:38:51 -07:00
{{/if}}
{{/if}}