mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
7ab0db9be7
no issue - converted publish menu and `gh-tags-list-item` components to glimmer syntax so data attributes can be passed in via `...attributes` - added explicit `data-test-button` bound attribute to `gh-task-button` component - moved `modal-theme-warnings` auto-bound data attribute from JS file to explicit html attribute in template
19 lines
1.2 KiB
Handlebars
19 lines
1.2 KiB
Handlebars
<div {{did-insert (fn @setSaveType "publish")}} 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> |