hummingbird-me/kitsu-web

View on GitHub
app/templates/components/stream-feed/edit-post.hbs

Summary

Maintainability
Test Coverage
{{#bootstrap/bs-modal id=modalId onClose=onClose as |modal|}}
  {{#modal.header}}
    <div class="text-xs-center">
      <h4>{{t "components.stream-feed.edit-post.header"}}</h4>
      <small>{{t "components.stream-feed.edit-post.error.tagged"}}</small>
    </div>
  {{/modal.header}}

  {{#modal.body}}
    {{stream-feed/create-post
      post=post
      isExpanded=true
      isEditing=true
      unitNumber=unitNumber
      shouldUnit=(not (is-empty unitNumber))
      onCreate=(perform updatePost)
    }}
  {{/modal.body}}
{{/bootstrap/bs-modal}}