mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Wired up showLatestPosts in admin
fixes https://github.com/TryGhost/Team/issues/2766 Edit showLatestPosts column via admin.
This commit is contained in:
parent
a513542b56
commit
f38d799ae2
2 changed files with 5 additions and 4 deletions
|
@ -241,16 +241,16 @@
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
|
|
||||||
<GhFormGroup class="gh-stack-item row">
|
<GhFormGroup class="gh-stack-item row">
|
||||||
<label for="latest-posts" class="modal-fullsettings-title" data-test-toggle="feedbackEnabled">Share your latest posts</label>
|
<label for="latest-posts" class="modal-fullsettings-title" data-test-toggle="showLatestPosts">Share your latest posts</label>
|
||||||
<div class="for-switch small">
|
<div class="for-switch small">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="latest-posts"
|
id="latest-posts"
|
||||||
checked={{@newsletter.feedbackEnabled}}
|
checked={{@newsletter.showLatestPosts}}
|
||||||
{{on "change" (fn this.onCheckboxChange "feedbackEnabled")}}
|
{{on "change" (fn this.onCheckboxChange "showLatestPosts")}}
|
||||||
>
|
>
|
||||||
<button type="button" class="input-toggle-component" {{on "click" (fn this.toggleProperty "feedbackEnabled")}}></button>
|
<button type="button" class="input-toggle-component" {{on "click" (fn this.toggleProperty "showLatestPosts")}}></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
|
|
|
@ -26,6 +26,7 @@ export default class Newsletter extends Model.extend(ValidationEngine) {
|
||||||
@attr({defaultValue: true}) showPostTitleSection;
|
@attr({defaultValue: true}) showPostTitleSection;
|
||||||
@attr({defaultValue: true}) showCommentCta;
|
@attr({defaultValue: true}) showCommentCta;
|
||||||
@attr({defaultValue: false}) showSubscriptionDetails;
|
@attr({defaultValue: false}) showSubscriptionDetails;
|
||||||
|
@attr({defaultValue: false}) showLatestPosts;
|
||||||
@attr({defaultValue: 'sans_serif'}) titleFontCategory;
|
@attr({defaultValue: 'sans_serif'}) titleFontCategory;
|
||||||
@attr({defaultValue: 'center'}) titleAlignment;
|
@attr({defaultValue: 'center'}) titleAlignment;
|
||||||
@attr({defaultValue: true}) showFeatureImage;
|
@attr({defaultValue: true}) showFeatureImage;
|
||||||
|
|
Loading…
Add table
Reference in a new issue