mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 04:10:33 +03:00
41 lines
1.2 KiB
Handlebars
41 lines
1.2 KiB
Handlebars
{{#if @post.isDraft}}
|
|
<div>
|
|
<button type="button" class="gh-btn gh-editor-preview-trigger" {{on "click" this.openPreview}}>
|
|
<span>Preview</span>
|
|
</button>
|
|
</div>
|
|
|
|
<button
|
|
type="button"
|
|
class="gh-btn gh-btn-editor darkgrey gh-publish-trigger"
|
|
{{on "click" this.openPublishFlow}}
|
|
{{on-key "cmd+shift+p"}}
|
|
disabled={{this.publishOptions.isLoading}}
|
|
data-test-button="publish-flow"
|
|
>
|
|
<span>Publish</span>
|
|
</button>
|
|
{{else}}
|
|
{{#if (or @hasUnsavedChanges this.saveButtonTaskGroup.isRunning)}}
|
|
<GhTaskButton
|
|
@task={{this.saveTask}}
|
|
@runningText="Saving..."
|
|
@class="gh-btn gh-btn-editor gh-publish-trigger"
|
|
@idleClass="green"
|
|
@runningClass="midlightgrey"
|
|
@successClass="midlightgrey"
|
|
@failureClass="red"
|
|
@showIcon={{false}}
|
|
@autoReset={{false}}
|
|
/>
|
|
{{/if}}
|
|
|
|
<button
|
|
type="button"
|
|
class="gh-btn gh-btn-editor darkgrey gh-publish-trigger"
|
|
{{on "click" this.openUpdateFlow}}
|
|
data-test-button="update-flow"
|
|
>
|
|
<span>Update</span>
|
|
</button>
|
|
{{/if}} |