2021-06-10 22:42:32 +03:00
|
|
|
{{#if @image}}
|
2016-09-24 12:10:08 +03:00
|
|
|
<div class="gh-image-uploader -with-image">
|
2021-06-10 22:42:32 +03:00
|
|
|
<div><img src={{@image}}></div>
|
2023-10-12 15:17:39 +03:00
|
|
|
<KoenigImageEditor
|
|
|
|
@imageSrc={{@image}}
|
|
|
|
@saveUrl={{@update}}
|
|
|
|
/>
|
2023-04-19 13:57:26 +03:00
|
|
|
<a class="image-action image-delete" title="Delete" {{on "click" (fn @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
|
2021-06-10 22:42:32 +03:00
|
|
|
@text={{@text}}
|
|
|
|
@altText={{@altText}}
|
|
|
|
@allowUnsplash={{@allowUnsplash}}
|
|
|
|
@update={{@update}}
|
|
|
|
@uploadStarted={{optional @uploadStarted}}
|
|
|
|
@uploadFinished={{optional @uploadFinished}}
|
2020-01-16 18:14:03 +03:00
|
|
|
/>
|
2021-06-10 22:42:32 +03:00
|
|
|
{{/if}}
|