2022-08-16 13:40:33 +03:00
|
|
|
import AdminRoute from 'ghost-admin/routes/admin';
|
2022-08-18 18:03:44 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2022-08-16 13:40:33 +03:00
|
|
|
|
2022-09-06 13:48:45 +03:00
|
|
|
export default class HistoryRoute extends AdminRoute {
|
2022-08-18 18:03:44 +03:00
|
|
|
@service feature;
|
|
|
|
|
|
|
|
beforeModel() {
|
|
|
|
super.beforeModel(...arguments);
|
|
|
|
if (!this.feature.auditLog) {
|
|
|
|
return this.transitionTo('home');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-16 13:40:33 +03:00
|
|
|
buildRouteInfoMetadata() {
|
|
|
|
return {
|
2022-09-06 13:48:45 +03:00
|
|
|
titleToken: 'History log'
|
2022-08-16 13:40:33 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|