mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 01:40:21 +03:00
8cc4c6c4a1
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
18 lines
478 B
JavaScript
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');
|
|
}
|
|
}
|