2022-02-01 12:34:03 +03:00
|
|
|
import classic from 'ember-classic-decorator';
|
|
|
|
import {action} from '@ember/object';
|
|
|
|
import {inject as service} from '@ember/service';
|
2021-01-28 18:25:21 +03:00
|
|
|
/* eslint-disable ghost/ember/alias-model-in-controller */
|
|
|
|
import Controller from '@ember/controller';
|
|
|
|
|
2022-02-01 12:34:03 +03:00
|
|
|
@classic
|
|
|
|
export default class SettingsController extends Controller {
|
2022-02-01 20:03:45 +03:00
|
|
|
@service settings;
|
|
|
|
@service session;
|
2021-01-28 18:25:21 +03:00
|
|
|
|
2022-02-01 12:34:03 +03:00
|
|
|
showLeaveSettingsModal = false;
|
2021-02-15 13:17:31 +03:00
|
|
|
|
2022-02-01 12:34:03 +03:00
|
|
|
@action
|
|
|
|
openStripeSettings() {
|
|
|
|
this.set('membersStripeOpen', true);
|
|
|
|
}
|
2021-01-28 18:25:21 +03:00
|
|
|
|
2022-02-01 12:34:03 +03:00
|
|
|
@action
|
|
|
|
closeLeaveSettingsModal() {
|
|
|
|
this.set('showLeaveSettingsModal', false);
|
2021-01-28 18:25:21 +03:00
|
|
|
}
|
|
|
|
|
2022-02-01 12:34:03 +03:00
|
|
|
@action
|
|
|
|
async leavePortalSettings() {
|
|
|
|
this.settings.rollbackAttributes();
|
|
|
|
this.set('showLeaveSettingsModal', false);
|
|
|
|
}
|
|
|
|
}
|