mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
15 lines
363 B
JavaScript
15 lines
363 B
JavaScript
|
import AdminRoute from 'ghost-admin/routes/admin';
|
||
|
import {inject as service} from '@ember/service';
|
||
|
|
||
|
export default class MembersActivityRoute extends AdminRoute {
|
||
|
@service feature;
|
||
|
|
||
|
beforeModel() {
|
||
|
super.beforeModel(...arguments);
|
||
|
|
||
|
if (!this.feature.membersActivityFeed) {
|
||
|
return this.transitionTo('home');
|
||
|
}
|
||
|
}
|
||
|
}
|