2020-01-16 18:14:03 +03:00
|
|
|
{{#if this.image}}
|
2016-09-24 12:10:08 +03:00
|
|
|
<div class="gh-image-uploader -with-image">
|
2020-01-16 18:14:03 +03:00
|
|
|
<div><img src={{this.image}}></div>
|
2017-04-14 19:22:14 +03:00
|
|
|
<a class="image-cancel" title="Delete" {{action "remove"}}>
|
2018-03-19 12:57:31 +03:00
|
|
|
{{svg-jar "trash"}}
|
2016-02-26 16:25:47 +03:00
|
|
|
<span class="hidden">Delete</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhImageUploader
|
|
|
|
@text={{this.text}}
|
|
|
|
@altText={{this.altText}}
|
|
|
|
@allowUnsplash={{this.allowUnsplash}}
|
|
|
|
@update={{action "update"}}
|
|
|
|
@uploadStarted={{action "uploadStarted"}}
|
|
|
|
@uploadFinished={{action "uploadFinished"}}
|
|
|
|
/>
|
2016-02-26 16:25:47 +03:00
|
|
|
{{/if}}
|