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