mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
5ecc74e87a
Closes #2849 -wire up delete post action in ember admin -refactor ember modal dialog -override RESTAdapter.deleteRecord to workaround Ember expecting an empty response body on DELETEs
14 lines
845 B
Handlebars
14 lines
845 B
Handlebars
<button type="button" {{action "save"}} {{bind-attr class="view.isDangerous:button-delete:button-save :js-publish-button" }}>
|
|
{{view.save-text}}
|
|
</button>
|
|
{{#gh-popover-button popoverName="post-save-menu" classNameBindings="open:active :options :up" title="Post Settings"}}
|
|
<span class="hidden">Post Settings</span>
|
|
{{/gh-popover-button}}
|
|
{{#gh-popover name="post-save-menu" closeOnClick="true" tagName="ul" classNames="editor-options overlay" publishTextBinding="view.publish-text" draftTextBinding="view.draft-text"}}
|
|
<li {{bind-attr class="controller.willPublish:active" }}>
|
|
<a {{action "setSaveType" "publish"}} href="#">{{view.publishText}}</a>
|
|
</li>
|
|
<li {{bind-attr class="controller.willPublish::active" }}>
|
|
<a {{action "setSaveType" "draft"}} href="#">{{view.draftText}}</a>
|
|
</li>
|
|
{{/gh-popover}} |