mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
32c9ee003f
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
35 lines
812 B
JavaScript
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);
|
|
}
|
|
}
|
|
|
|
});
|