mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
20 lines
529 B
JavaScript
20 lines
529 B
JavaScript
|
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class MentionsRoute extends AuthenticatedRoute {
|
||
|
@service store;
|
||
|
@service feature;
|
||
|
|
||
|
beforeModel() {
|
||
|
super.beforeModel(...arguments);
|
||
|
if (!this.feature.webmentions) {
|
||
|
return this.transitionTo('dashboard');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
setupController(controller) {
|
||
|
super.setupController(...arguments);
|
||
|
controller.loadMentionsTask.perform();
|
||
|
}
|
||
|
}
|