2014-05-31 04:07:15 +04:00
|
|
|
<button type="button" {{action "save"}} {{bind-attr class="view.isDangerous:button-delete:button-save :js-publish-button" }}>
|
|
|
|
{{view.save-text}}
|
2014-05-21 17:53:00 +04:00
|
|
|
</button>
|
2014-05-31 04:07:15 +04:00
|
|
|
{{#gh-popover-button popoverName="post-save-menu" classNameBindings="open:active :options :up" title="Post Settings"}}
|
|
|
|
<span class="hidden">Post Settings</span>
|
|
|
|
{{/gh-popover-button}}
|
2014-06-04 01:10:54 +04:00
|
|
|
{{#gh-popover name="post-save-menu" closeOnClick="true" tagName="ul" classNames="editor-options overlay" publishTextBinding="view.publish-text" draftTextBinding="view.draft-text"}}
|
2014-05-31 04:07:15 +04:00
|
|
|
<li {{bind-attr class="controller.willPublish:active" }}>
|
|
|
|
<a {{action "setSaveType" "publish"}} href="#">{{view.publishText}}</a>
|
2014-05-21 17:53:00 +04:00
|
|
|
</li>
|
2014-05-31 04:07:15 +04:00
|
|
|
<li {{bind-attr class="controller.willPublish::active" }}>
|
|
|
|
<a {{action "setSaveType" "draft"}} href="#">{{view.draftText}}</a>
|
2014-05-21 17:53:00 +04:00
|
|
|
</li>
|
2014-05-31 04:07:15 +04:00
|
|
|
{{/gh-popover}}
|