Ghost/ghost/admin/app/controllers/setup/finishing-touches.js
Kevin Ansfield 8cc4c6c4a1 Dropped ember-concurrency-decorators dependency
no issue

- since `ember-concurrency@2.0` it's possible to use the standard imports as decorators removing the need for the extra `ember-concurrency-decorators` dependency and imports
2022-02-09 10:49:38 +00:00

18 lines
478 B
JavaScript

import Controller from '@ember/controller';
import {inject as service} from '@ember/service';
import {task} from 'ember-concurrency';
export default class SetupFinishingTouchesController extends Controller {
@service modals;
@service router;
@service settings;
@service themeManagement;
@task
*saveAndContinueTask() {
yield this.settings.save();
this.modals.open('modals/get-started');
this.router.transitionTo('home');
}
}