2022-05-05 17:59:34 +03:00
|
|
|
{{#if @post.isDraft}}
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="gh-btn gh-btn-editor darkgrey gh-publishmenu-trigger"
|
|
|
|
{{on "click" this.openPublishFlow}}
|
|
|
|
{{on-key "cmd+shift+p"}}
|
|
|
|
disabled={{this.publishOptions.isLoading}}
|
|
|
|
data-test-button="publish-flow"
|
|
|
|
>
|
|
|
|
<span>Publish</span>
|
|
|
|
</button>
|
|
|
|
{{else}}
|
2022-05-10 12:04:14 +03:00
|
|
|
{{#if (or @hasUnsavedChanges this.saveButtonTaskGroup.isRunning)}}
|
|
|
|
<GhTaskButton
|
|
|
|
@task={{this.saveTask}}
|
|
|
|
@runningText="Saving..."
|
|
|
|
@class="gh-btn gh-btn-editor gh-publishmenu-trigger"
|
|
|
|
@idleClass="green"
|
|
|
|
@runningClass="midlightgrey"
|
|
|
|
@successClass="midlightgrey"
|
|
|
|
@failureClass="red"
|
|
|
|
@showIcon={{false}}
|
2022-05-10 13:32:06 +03:00
|
|
|
@autoReset={{false}}
|
2022-05-10 12:04:14 +03:00
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-05-05 17:59:34 +03:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="gh-btn gh-btn-editor darkgrey gh-publishmenu-trigger"
|
|
|
|
{{on "click" this.openUpdateFlow}}
|
|
|
|
data-test-button="update-flow"
|
|
|
|
>
|
|
|
|
<span>Update</span>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|