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
This commit is contained in:
Kevin Ansfield 2021-05-19 18:14:56 +01:00
parent 942ad319e8
commit 32c9ee003f
2 changed files with 1 additions and 22 deletions

View File

@ -7,35 +7,22 @@ export default Controller.extend({
settings: service(),
session: service(),
queryParams: ['showPortalSettings', 'showBrandingModal'],
queryParams: ['showBrandingModal'],
showPortalSettings: false,
showBrandingModal: false,
showLeaveSettingsModal: false,
tagName: '',
actions: {
openStripeSettings() {
this.set('membersStripeOpen', true);
},
closePortalSettings() {
const changedAttributes = this.settings.changedAttributes();
if (changedAttributes && Object.keys(changedAttributes).length > 0) {
this.set('showLeaveSettingsModal', true);
} else {
this.set('showPortalSettings', false);
}
},
closeLeaveSettingsModal() {
this.set('showLeaveSettingsModal', false);
},
async leavePortalSettings() {
this.settings.rollbackAttributes();
this.set('showPortalSettings', false);
this.set('showLeaveSettingsModal', false);
},

View File

@ -78,14 +78,6 @@
</section>
</section>
{{#if this.showPortalSettings}}
<GhFullscreenModal @modal="portal-settings"
@model={{hash
openStripeSettings=(action "openStripeSettings")
}}
@close={{action "closePortalSettings"}}
@modifier="full-overlay portal-settings" />
{{/if}}
{{#if this.showBrandingModal}}
<GhFullscreenModal @modal="branding"
@close={{action "closeBrandingModal"}}