Ghost/ghost/admin/app/controllers/settings.js
Kevin Ansfield 32c9ee003f Removed unused portal-settings modal code from settings screen
no issue

- portal settings modal is now initiated from the membership screen so the code for showing/closing it in the settings controller is not needed
2021-05-19 18:32:37 +01:00

35 lines
812 B
JavaScript

/* 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(),
queryParams: ['showBrandingModal'],
showBrandingModal: false,
showLeaveSettingsModal: false,
actions: {
openStripeSettings() {
this.set('membersStripeOpen', true);
},
closeLeaveSettingsModal() {
this.set('showLeaveSettingsModal', false);
},
async leavePortalSettings() {
this.settings.rollbackAttributes();
this.set('showLeaveSettingsModal', false);
},
closeBrandingModal() {
this.set('showBrandingModal', false);
}
}
});