mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
b38e21995a
no issue - routes no longer automatically trigger save for cmd+s, it should be explicitly tied to the action that should be performed - added `{{on-key "cmd+s"}}` to the `<GhTaskButton>` save buttons - `{{on-key}}` with no explicit action triggers a click action on the attached element, in this case the screen's save buttons
48 lines
1.6 KiB
Handlebars
48 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"
|
|
@task={{this.saveSettings}}
|
|
@successText="Saved"
|
|
@runningText="Saving"
|
|
@class="gh-btn gh-btn-primary gh-btn-icon"
|
|
{{on-key "cmd+s"}}
|
|
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}} |