mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
5d22b788c8
refs #10318 * Updated settings model with new settings * Removed parseSubscriptionSettings from settings service * Updated members-utils to use new settings * Updated labs controller to use new settings * Fixed dependency for member-settings-form * Updated members-lab-setting component to use new settings * Updated disconnect modal to use new settings * Updated members portal modal to use new settings * Removed Direct from settings * Renamed members_allow_signup -> members_allow_free_signup * Allowed for null fromAddress
25 lines
582 B
JavaScript
25 lines
582 B
JavaScript
import ModalComponent from 'ghost-admin/components/modal-base';
|
|
import {alias} from '@ember/object/computed';
|
|
import {task} from 'ember-concurrency';
|
|
|
|
export default ModalComponent.extend({
|
|
// Allowed actions
|
|
confirm: () => {},
|
|
|
|
stripeConnectAccountName: alias('model.stripeConnectAccountName'),
|
|
|
|
actions: {
|
|
confirm() {
|
|
this.disconnectStripe.perform();
|
|
}
|
|
},
|
|
|
|
disconnectStripe: task(function* () {
|
|
try {
|
|
yield this.confirm();
|
|
} finally {
|
|
this.send('closeModal');
|
|
}
|
|
}).drop()
|
|
});
|