0
Fork 0
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:
Sanne de Vries 2023-07-20 12:55:38 +02:00 committed by GitHub
parent 9e61f26586
commit 56beb0b14a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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">