mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
d48abaa1f8
refs https://github.com/TryGhost/Team/issues/450 - adds `launch/*` routes corresponding to launch wizard steps - sets up navigation between each wizard step - adds components for each `launch/*` step to contain step-related functionality and facilitate later refactoring to a generalised wizard component - adds link to the launch wizard from the dashboard screen
13 lines
341 B
JavaScript
13 lines
341 B
JavaScript
import AuthenticatedRoute from 'ghost-admin/routes/authenticated';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class LaunchRoute extends AuthenticatedRoute {
|
|
@service config;
|
|
|
|
beforeModel() {
|
|
if (!this.config.get('enableDeveloperExperiments')) {
|
|
this.transitionTo('site');
|
|
}
|
|
}
|
|
}
|