mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
23 lines
505 B
JavaScript
23 lines
505 B
JavaScript
|
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class MembersAccessRoute extends AuthenticatedRoute {
|
||
|
@service settings;
|
||
|
|
||
|
model() {
|
||
|
this.settings.reload();
|
||
|
}
|
||
|
|
||
|
actions = {
|
||
|
willTransition(transition) {
|
||
|
return this.controller.leaveRoute(transition);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
buildRouteInfoMetadata() {
|
||
|
return {
|
||
|
titleToken: 'Settings - Members'
|
||
|
};
|
||
|
}
|
||
|
}
|