mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
7b340929ef
no issue - simplified query params as they are only used to display a notification - removed all controller knowledge and associated reset behaviour for query params - moved notification display from `setupController` to `beforeModel` so the raw query params can be pulled off of the transition object - removed unused service injections from `<GhMembersEmailSetting>` - removed unused service injections and properties from members-email controller that were left over from a copy/paste - converted members-email controller to a native class - fixed "leave settings" confirmation modal behaviour that wasn't moved across in the the settings screen re-org
42 lines
1.3 KiB
Handlebars
42 lines
1.3 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">
|
|
|
|
{{#if this.session.user.isOwner}}
|
|
<div class="gh-setting-liquid-section">
|
|
<GhMembersEmailSetting
|
|
@settings={{this.settings}}
|
|
@fromAddress={{this.fromAddress}}
|
|
@supportAddress={{this.supportAddress}}
|
|
@setEmailAddress={{this.setEmailAddress}}
|
|
/>
|
|
</div>
|
|
{{/if}}
|
|
|
|
</section>
|
|
|
|
{{#if this.showLeaveSettingsModal}}
|
|
<GhFullscreenModal
|
|
@modal="leave-settings"
|
|
@confirm={{this.confirmLeave}}
|
|
@close={{this.cancelLeave}}
|
|
@modifier="action wide"
|
|
/>
|
|
{{/if}}
|
|
</section> |