mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Switched around the feature and title toggles in the post settings menu (#17431)
No ref
This commit is contained in:
parent
9e61f26586
commit
56beb0b14a
1 changed files with 22 additions and 22 deletions
|
@ -123,6 +123,28 @@
|
|||
</section>
|
||||
|
||||
<ul class="nav-list">
|
||||
{{#if (and this.post.isPage this.post.lexical (feature 'pageImprovements'))}}
|
||||
<li class="nav-list-item">
|
||||
<div class="for-switch x-small">
|
||||
<label class="switch">
|
||||
<span>
|
||||
<Icons::EyeOpenClose class="feature" @closed={{not this.post.showTitleAndFeatureImage}} />
|
||||
Show title and feature image
|
||||
</span>
|
||||
<div class="gh-toggle-featured">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={{this.post.showTitleAndFeatureImage}}
|
||||
class="gh-input post-settings-featured"
|
||||
{{on "change" this.toggleShowTitleAndFeatureImage}}
|
||||
data-test-checkbox="hide-title-and-feature-image"
|
||||
>
|
||||
<span class="input-toggle-component"></span>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#unless this.session.user.isAuthorOrContributor}}
|
||||
<li class="nav-list-item">
|
||||
<div class="for-switch x-small">
|
||||
|
@ -149,28 +171,6 @@
|
|||
</div>
|
||||
</li>
|
||||
{{/unless}}
|
||||
{{#if (and this.post.isPage this.post.lexical (feature 'pageImprovements'))}}
|
||||
<li class="nav-list-item">
|
||||
<div class="for-switch x-small">
|
||||
<label class="switch">
|
||||
<span>
|
||||
<Icons::EyeOpenClose class="feature" @closed={{not this.post.showTitleAndFeatureImage}} />
|
||||
Show title and feature image
|
||||
</span>
|
||||
<div class="gh-toggle-featured">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={{this.post.showTitleAndFeatureImage}}
|
||||
class="gh-input post-settings-featured"
|
||||
{{on "change" this.toggleShowTitleAndFeatureImage}}
|
||||
data-test-checkbox="hide-title-and-feature-image"
|
||||
>
|
||||
<span class="input-toggle-component"></span>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if this.canViewPostHistory}}
|
||||
<li class="nav-list-item">
|
||||
<button type="button" {{on "click" this.openPostHistory}} data-test-toggle="post-history">
|
||||
|
|
Loading…
Reference in a new issue