mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
89b9f6cfc6
no issue Unsaved changes handling hadn't been moved across fully to the payments screen when settings were re-jigged meaning changes on the payments screen would make settings dirty and show unsaved changes modal unexpectedly on other screens. - refactored `members-payments` route to use native classes - used same unsaved changes pattern as `members-access` route/controller
36 lines
1.3 KiB
Handlebars
36 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>
|
|
Payments
|
|
</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">
|
|
<GhMembersPaymentsSetting
|
|
@setDefaultContentVisibility={{this.setDefaultContentVisibility}}
|
|
@setStripeConnectIntegrationTokenSetting={{this.setStripeConnectIntegrationTokenSetting}}
|
|
/>
|
|
</div>
|
|
</section>
|
|
|
|
{{#if this.showLeaveSettingsModal}}
|
|
<GhFullscreenModal
|
|
@modal="leave-settings"
|
|
@confirm={{this.confirmLeave}}
|
|
@close={{this.cancelLeave}}
|
|
@modifier="action wide"
|
|
/>
|
|
{{/if}}
|
|
</section> |