mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
c6a75cf015
refs https://github.com/TryGhost/Team/issues/3145 - includes image editing for generic upload image components to extend image editing capabilities to other areas in Admin - allows image editing for tag images and staff user images
16 lines
409 B
Handlebars
16 lines
409 B
Handlebars
{{#if this.isEditorEnabled}}
|
|
<GhUploader
|
|
@onComplete={{this.onUploadComplete}}
|
|
as |uploader|
|
|
>
|
|
<button
|
|
type="button"
|
|
class="{{if @className @className "image-action image-edit"}}"
|
|
title="Edit image"
|
|
{{on "click" (fn this.handleClick uploader)}}
|
|
>
|
|
{{svg-jar "pen"}}
|
|
</button>
|
|
</GhUploader>
|
|
{{/if}}
|