Ghost/ghost/admin/app/routes/settings/membership.js
Kevin Ansfield 06ff9dfb10 Fixed unsaved confirmation when leaving membership settings screen
refs bdcbfcb92c

- previous commit missed rename of access route to membership
2021-05-14 15:35:07 +01:00

23 lines
513 B
JavaScript

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'
};
}
}