Ghost/ghost/admin/app/routes/settings/audit-log.js

20 lines
457 B
JavaScript
Raw Normal View History

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