2021-03-29 14:49:09 +03:00
|
|
|
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
|
2021-05-14 17:35:07 +03:00
|
|
|
export default class MembershipSettingsRoute extends AuthenticatedRoute {
|
2021-03-29 14:49:09 +03:00
|
|
|
@service settings;
|
|
|
|
|
|
|
|
model() {
|
|
|
|
this.settings.reload();
|
|
|
|
}
|
|
|
|
|
|
|
|
actions = {
|
|
|
|
willTransition(transition) {
|
|
|
|
return this.controller.leaveRoute(transition);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildRouteInfoMetadata() {
|
|
|
|
return {
|
2021-05-14 17:35:07 +03:00
|
|
|
titleToken: 'Settings - Membership'
|
2021-03-29 14:49:09 +03:00
|
|
|
};
|
|
|
|
}
|
2021-05-17 14:40:08 +03:00
|
|
|
|
|
|
|
resetController(controller, isExiting) {
|
|
|
|
if (isExiting) {
|
|
|
|
controller.reset();
|
|
|
|
}
|
|
|
|
}
|
2021-03-29 14:49:09 +03:00
|
|
|
}
|