mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
f07940f0e7
no issue - find+replace to make service injection style consistent and take up much less space at the top of files that used multi-line syntax
30 lines
734 B
JavaScript
30 lines
734 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
|
|
openStripeSettings() {
|
|
this.set('membersStripeOpen', true);
|
|
}
|
|
|
|
@action
|
|
closeLeaveSettingsModal() {
|
|
this.set('showLeaveSettingsModal', false);
|
|
}
|
|
|
|
@action
|
|
async leavePortalSettings() {
|
|
this.settings.rollbackAttributes();
|
|
this.set('showLeaveSettingsModal', false);
|
|
}
|
|
}
|