mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
122ba10114
refs. https://github.com/TryGhost/Toolbox/issues/356 - The Audit log list had a temporary (POC) design, it needed refinements
20 lines
446 B
JavaScript
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'
|
|
};
|
|
}
|
|
}
|