2014-08-20 17:36:25 +04:00
|
|
|
<button type="button" {{action "save"}} {{bind-attr class=":btn :btn-sm view.isDangerous:btn-red:btn-blue :js-publish-button" }}>{{view.saveText}}</button>
|
2014-08-06 03:07:32 +04:00
|
|
|
{{#gh-popover-button popoverName="post-save-menu" classNameBindings=":btn :btn-sm view.isDangerous:btn-red:btn-blue btnopen:active :dropdown-toggle :up"}}
|
|
|
|
<i class="options"></i>
|
|
|
|
<span class="sr-only">Toggle Settings Menu</span>
|
|
|
|
{{/gh-popover-button}}
|
2014-08-20 17:36:25 +04:00
|
|
|
{{#gh-popover name="post-save-menu" closeOnClick="true" tagName="div" classNames="dropdown editor-options"}}
|
2014-08-13 17:27:31 +04:00
|
|
|
<ul class="dropdown-menu dropdown-triangle-bottom-right">
|
2014-08-20 17:36:25 +04:00
|
|
|
<li class="post-save-publish" {{bind-attr class="willPublish:active"}}>
|
2014-08-13 17:27:31 +04:00
|
|
|
<a {{action "setSaveType" "publish"}} href="#">{{view.publishText}}</a>
|
|
|
|
</li>
|
2014-08-20 17:36:25 +04:00
|
|
|
<li class="post-save-draft" {{bind-attr class="willPublish::active"}}>
|
2014-08-13 17:27:31 +04:00
|
|
|
<a {{action "setSaveType" "draft"}} href="#">{{view.draftText}}</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2014-05-31 04:07:15 +04:00
|
|
|
{{/gh-popover}}
|