Ghost/ghost/admin/app/routes/settings/membership.js

29 lines
632 B
JavaScript
Raw Normal View History

import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
import {inject as service} from '@ember/service';
export default class MembershipSettingsRoute extends AuthenticatedRoute {
@service settings;
model() {
this.settings.reload();
}
actions = {
willTransition(transition) {
return this.controller.leaveRoute(transition);
}
}
buildRouteInfoMetadata() {
return {
titleToken: 'Settings - Membership'
};
}
resetController(controller, isExiting) {
if (isExiting) {
controller.reset();
}
}
}