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

20 lines
447 B
JavaScript
Raw Normal View History

import AdminRoute from 'ghost-admin/routes/admin';
import {inject as service} from '@ember/service';
export default class HistoryRoute extends AdminRoute {
@service feature;
beforeModel() {
super.beforeModel(...arguments);
if (!this.feature.auditLog) {
return this.transitionTo('home');
}
}
buildRouteInfoMetadata() {
return {
titleToken: 'History log'
};
}
}