Ghost/ghost/admin/app/controllers/home.js
Kevin Ansfield 8bc4309deb Added display of get-started modal after completing setup flow
refs https://github.com/TryGhost/Team/issues/1295

- moved `?firstStart` query param handling into `'home'` route as it seemed like a preferable location
  - switched to using `resetController` hook to manage removal of query param which seemed more reliable than the transition approach
- added `firstStart` query param to the transitions when completing step 3 of the setup flow
2022-02-01 18:20:26 +00:00

9 lines
214 B
JavaScript

import Controller from '@ember/controller';
import {tracked} from '@glimmer/tracking';
export default class HomeController extends Controller {
queryParams = ['firstStart'];
@tracked firstStart = null;
}