mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
bf676ddfb0
refs: https://github.com/TryGhost/Team/issues/1376 - renamed finishing touches file to done - no last modal, just the done screen for first start - added options for next steps
22 lines
547 B
JavaScript
22 lines
547 B
JavaScript
import Route from '@ember/routing/route';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default class HomeRoute extends Route {
|
|
@service feature;
|
|
@service modals;
|
|
|
|
beforeModel(transition) {
|
|
super.beforeModel(...arguments);
|
|
|
|
if (this.feature.improvedOnboarding && transition.to?.queryParams?.firstStart === 'true') {
|
|
return this.transitionTo('setup.done');
|
|
}
|
|
|
|
this.transitionTo('dashboard');
|
|
}
|
|
|
|
resetController(controller) {
|
|
controller.firstStart = false;
|
|
}
|
|
}
|