Ghost/ghost/admin/app/routes/designsandbox.js

14 lines
358 B
JavaScript
Raw Normal View History

2021-02-05 15:48:38 +03:00
import Route from '@ember/routing/route';
import {inject as service} from '@ember/service';
export default class DesignsandboxRoute extends Route {
@service config;
2021-02-05 15:48:38 +03:00
beforeModel() {
super.beforeModel(...arguments);
if (!this.config.get('enableDeveloperExperiments')) {
2021-02-05 15:48:38 +03:00
return this.transitionTo('home');
}
}
}