mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
fc21cd836a
no issue - previously only Owner staff users could access the email settings screens despite Administrators having server-side permissions to change the related settings
54 lines
1.9 KiB
Handlebars
54 lines
1.9 KiB
Handlebars
<section class="gh-canvas">
|
|
<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">
|
|
<GhMembersEmailSetting
|
|
@fromAddress={{this.fromAddress}}
|
|
@supportAddress={{this.supportAddress}}
|
|
@setEmailAddress={{this.setEmailAddress}}
|
|
@emailRecipientsExpanded={{this.emailRecipientsOpen}}
|
|
@toggleEmailDesignSettings={{this.toggleEmailDesignSettings}}
|
|
@toggleEmailRecipientsExpansion={{this.toggleEmailRecipientsOpen}}
|
|
/>
|
|
</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">
|
|
{{#if (enable-developer-experiments)}}
|
|
<ModalEmailDesignSettingsLabs
|
|
@closeModal={{this.toggleEmailDesignSettings}}
|
|
/>
|
|
{{else}}
|
|
<ModalEmailDesignSettings
|
|
@closeModal={{this.toggleEmailDesignSettings}}
|
|
/>
|
|
{{/if}}
|
|
</GhFullscreenModal>
|
|
{{/if}} |