Ghost/ghost/admin/app/controllers/settings.js
Simon Backx bc1aa493fa 🐛 Fixed unreliable paid members enabled checks (#2405)
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
2022-05-24 16:53:03 +02:00

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);
}
}