Ghost/ghost/admin/app/controllers/setup/finishing-touches.js

18 lines
489 B
JavaScript
Raw Normal View History

import Controller from '@ember/controller';
import {inject as service} from '@ember/service';
import {task} from 'ember-concurrency-decorators';
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');
}
}