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"
|
|
|
|
|
}}
|
2018-08-09 10:33:11 -07:00
|
|
|
</button>
|
2017-02-13 15:01:38 -08:00
|
|
|
|
2017-10-18 17:38:51 -07:00
|
|
|
{{#if isShowingFieldComment}}
|
|
|
|
|
{{#if getComments.last.isRunning}}
|
|
|
|
|
{{#modal-dialog
|
2018-06-06 21:46:10 -07:00
|
|
|
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}}
|
2018-03-01 11:47:24 -08:00
|
|
|
{{comment.html}}
|
2017-10-18 17:38:51 -07:00
|
|
|
{{/stream.item}}
|
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
|
|
{{/comment/comment-stream}}
|
|
|
|
|
{{/modal-dialog}}
|
|
|
|
|
{{else}}
|
2018-08-09 10:33:11 -07:00
|
|
|
{{pendulum-ellipsis-animation}}
|
2017-10-18 17:38:51 -07:00
|
|
|
{{/if}}
|
2017-02-13 15:01:38 -08:00
|
|
|
{{/if}}
|