2014-08-05 18:07:32 -05:00
|
|
|
<button type="button" {{action "save"}} {{bind-attr class=":btn :btn-sm view.isDangerous:btn-red:btn-blue :js-publish-button" }}>{{view.save-text}}</button>
|
|
|
|
{{#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-13 08:27:31 -05:00
|
|
|
{{#gh-popover name="post-save-menu" closeOnClick="true" tagName="div" classNames="dropdown editor-options" publishTextBinding="view.publish-text" draftTextBinding="view.draft-text"}}
|
|
|
|
<ul class="dropdown-menu dropdown-triangle-bottom-right">
|
|
|
|
<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>
|
|
|
|
</ul>
|
2014-05-30 19:07:15 -05:00
|
|
|
{{/gh-popover}}
|