Ghost/ghost/admin/app/controllers/settings.js

28 lines
648 B
JavaScript
Raw Normal View History

/* eslint-disable ghost/ember/alias-model-in-controller */
import Controller from '@ember/controller';
import {inject as service} from '@ember/service';
export default Controller.extend({
settings: service(),
session: service(),
showLeaveSettingsModal: false,
actions: {
openStripeSettings() {
this.set('membersStripeOpen', true);
},
closeLeaveSettingsModal() {
this.set('showLeaveSettingsModal', false);
},
async leavePortalSettings() {
this.settings.rollbackAttributes();
this.set('showLeaveSettingsModal', false);
}
}
});