mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
21b4b15a1c
Updated email newsletter settings - Added toggle to disable email newsletters - Hides email related UI when email is completely turned off - Rearranged email newsletter settings - Added publish-menu preview in - Changed default-recipients setting - Updated publish-menu to show Publish as default action - Removed the confirmation modal during publishing when no emails are intended to be sent
46 lines
1.6 KiB
Handlebars
46 lines
1.6 KiB
Handlebars
<section class="gh-canvas gh-setting-email">
|
|
<GhCanvasHeader class="gh-canvas-header">
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
<LinkTo @route="settings">Settings</LinkTo>
|
|
<span>{{svg-jar "arrow-right"}}</span>
|
|
Email newsletter
|
|
</h2>
|
|
<section class="view-actions">
|
|
<GhTaskButton @buttonText="Save settings"
|
|
@task={{this.saveSettings}}
|
|
@successText="Saved"
|
|
@runningText="Saving"
|
|
@class="gh-btn gh-btn-primary gh-btn-icon"
|
|
data-test-button="save-members-settings"
|
|
/>
|
|
</section>
|
|
</GhCanvasHeader>
|
|
|
|
<section class="view-container settings-debug">
|
|
<div class="gh-setting-liquid-section">
|
|
<Settings::MembersEmail
|
|
@fromAddress={{this.fromAddress}}
|
|
@supportAddress={{this.supportAddress}}
|
|
@setEmailAddress={{this.setEmailAddress}}
|
|
@toggleEmailDesignSettings={{this.toggleEmailDesignSettings}}
|
|
/>
|
|
</div>
|
|
</section>
|
|
|
|
{{#if this.showLeaveSettingsModal}}
|
|
<GhFullscreenModal
|
|
@modal="leave-settings"
|
|
@confirm={{this.confirmLeave}}
|
|
@close={{this.cancelLeave}}
|
|
@modifier="action wide"
|
|
/>
|
|
{{/if}}
|
|
</section>
|
|
|
|
{{#if this.showEmailDesignSettings}}
|
|
<GhFullscreenModal @modifier="full-overlay portal-settings">
|
|
<ModalEmailDesignSettings
|
|
@closeModal={{this.toggleEmailDesignSettings}}
|
|
/>
|
|
</GhFullscreenModal>
|
|
{{/if}} |