Ghost/ghost/admin/app/routes/settings/audit-log.js
Peter Zimon 122ba10114 Updated Activity log list design
refs. https://github.com/TryGhost/Toolbox/issues/356

- The Audit log list had a temporary (POC) design, it needed refinements
2022-08-22 19:15:37 +02:00

20 lines
446 B
JavaScript

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: 'Audit log'
};
}
}