mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
bc1aa493fa
refs https://github.com/TryGhost/Team/issues/1650 - Some places only checked for Stripe being connected via the 'connect' method and ignored the 'direct' method - Updated (where possible) admin to use the new calculated `paid_members_enabled` setting
25 lines
643 B
JavaScript
25 lines
643 B
JavaScript
import classic from 'ember-classic-decorator';
|
|
import {action} from '@ember/object';
|
|
import {inject as service} from '@ember/service';
|
|
/* eslint-disable ghost/ember/alias-model-in-controller */
|
|
import Controller from '@ember/controller';
|
|
|
|
@classic
|
|
export default class SettingsController extends Controller {
|
|
@service settings;
|
|
@service session;
|
|
|
|
showLeaveSettingsModal = false;
|
|
|
|
@action
|
|
closeLeaveSettingsModal() {
|
|
this.set('showLeaveSettingsModal', false);
|
|
}
|
|
|
|
@action
|
|
async leavePortalSettings() {
|
|
this.settings.rollbackAttributes();
|
|
this.set('showLeaveSettingsModal', false);
|
|
}
|
|
}
|