mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
b71babfc51
no issue - bumped `ember-source`, `ember-data`, and `ember-cli` to latest 3.22.x versions - fixed errors caused by updating properties inside of a render - `<GhPublishMenu>` removed insta-call of `@setSaveType` when rendering sub-components in favour of pre-setting the default `@saveType` value when the underlying post status changes - updated `<GhNavMenu>` to use the run-loop to update the `firstRender` property once rendering has finished rather than mid-render
19 lines
1.2 KiB
Handlebars
19 lines
1.2 KiB
Handlebars
<div data-test-publishmenu-published="true" ...attributes>
|
|
<header class="gh-publishmenu-heading">Update {{@post.displayName}} status</header>
|
|
<section class="gh-publishmenu-content gh-publishmenu-section">
|
|
<div class="gh-publishmenu-radio {{if (eq @saveType "draft") "active"}}" {{on "click" (fn @setSaveType "draft")}}>
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-unpublished-option></div>
|
|
<div class="gh-publishmenu-radio-content">
|
|
<div class="gh-publishmenu-radio-label">Unpublished</div>
|
|
<div class="gh-publishmenu-radio-desc">Revert this {{@post.displayName}} to a private draft</div>
|
|
</div>
|
|
</div>
|
|
<div class="gh-publishmenu-radio {{if (eq @saveType "publish") "active"}}" {{on "click" (fn @setSaveType "publish")}}>
|
|
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
|
|
<div class="gh-publishmenu-radio-content">
|
|
<div class="gh-publishmenu-radio-label">Published</div>
|
|
<div class="gh-publishmenu-radio-desc">Display this {{@post.displayName}} publicly</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div> |