mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Moved the audience feedback setting into the footer
refs https://github.com/TryGhost/Team/issues/2191
This commit is contained in:
parent
b272b34a44
commit
8537239548
4 changed files with 32 additions and 17 deletions
|
@ -173,6 +173,24 @@
|
||||||
{{#liquid-if isOpen}}
|
{{#liquid-if isOpen}}
|
||||||
<div class="modal-fullsettings-tab-expanded">
|
<div class="modal-fullsettings-tab-expanded">
|
||||||
<div class="gh-stack">
|
<div class="gh-stack">
|
||||||
|
|
||||||
|
{{#if (feature "audienceFeedback")}}
|
||||||
|
<GhFormGroup @classNames="gh-stack-item gh-setting gh-setting-extra">
|
||||||
|
<label for="capture-feedback" class="modal-fullsettings-title" data-test-toggle="feedbackEnabled">Ask your readers for feedback</label>
|
||||||
|
<div class="for-switch small">
|
||||||
|
<div class="container">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
id="capture-feedback"
|
||||||
|
checked={{@newsletter.feedbackEnabled}}
|
||||||
|
{{on "change" (fn this.onCheckboxChange "feedbackEnabled")}}
|
||||||
|
>
|
||||||
|
<button type="button" class="input-toggle-component" {{on "click" (fn this.toggleProperty "feedbackEnabled")}}></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</GhFormGroup>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
<GhFormGroup @classNames="gh-stack-item">
|
<GhFormGroup @classNames="gh-stack-item">
|
||||||
<label class="modal-fullsettings-title">Email footer</label>
|
<label class="modal-fullsettings-title">Email footer</label>
|
||||||
<KoenigBasicHtmlInput
|
<KoenigBasicHtmlInput
|
||||||
|
|
|
@ -8,6 +8,16 @@ export default class EditNewsletterDesignForm extends Component {
|
||||||
|
|
||||||
imageExtensions = IMAGE_EXTENSIONS;
|
imageExtensions = IMAGE_EXTENSIONS;
|
||||||
|
|
||||||
|
@action
|
||||||
|
onCheckboxChange(property, event) {
|
||||||
|
this.args.newsletter[property] = event.target.checked;
|
||||||
|
}
|
||||||
|
|
||||||
|
@action
|
||||||
|
toggleProperty(property) {
|
||||||
|
this.args.newsletter[property] = !this.args.newsletter[property];
|
||||||
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
imageUploaded(property, images) {
|
imageUploaded(property, images) {
|
||||||
if (images[0]) {
|
if (images[0]) {
|
||||||
|
|
|
@ -114,23 +114,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</GhFormGroup>
|
</GhFormGroup>
|
||||||
|
|
||||||
{{#if (feature "audienceFeedback")}}
|
|
||||||
<GhFormGroup @classNames="gh-stack-item gh-setting">
|
|
||||||
<label for="capture-feedback" class="modal-fullsettings-title" data-test-toggle="feedbackEnabled">Ask your readers for feedback</label>
|
|
||||||
<div class="for-switch small">
|
|
||||||
<div class="container">
|
|
||||||
<input
|
|
||||||
type="checkbox"
|
|
||||||
id="capture-feedback"
|
|
||||||
checked={{@newsletter.feedbackEnabled}}
|
|
||||||
{{on "change" (fn this.onCheckboxChange "feedbackEnabled")}}
|
|
||||||
>
|
|
||||||
<button type="button" class="input-toggle-component" {{on "click" (fn this.toggleProperty "feedbackEnabled")}}></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</GhFormGroup>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/liquid-if}}
|
{{/liquid-if}}
|
||||||
|
|
|
@ -694,6 +694,10 @@
|
||||||
padding: 12px 0;
|
padding: 12px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-fullsettings-tab-expanded .gh-setting.gh-setting-extra {
|
||||||
|
padding-bottom: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
.modal-fullsettings-form-labs .for-checkbox .input-toggle-component {
|
.modal-fullsettings-form-labs .for-checkbox .input-toggle-component {
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue