2021-02-04 21:35:19 +03:00
|
|
|
import Component from '@glimmer/component';
|
2021-02-23 13:18:37 +03:00
|
|
|
import {htmlSafe} from '@ember/string';
|
2021-02-04 21:35:19 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
import {task} from 'ember-concurrency-decorators';
|
|
|
|
|
|
|
|
export default class GhLaunchWizardFinaliseComponent extends Component {
|
|
|
|
@service feature;
|
2021-02-23 13:18:37 +03:00
|
|
|
@service notifications;
|
2021-02-04 21:35:19 +03:00
|
|
|
@service router;
|
|
|
|
|
|
|
|
@task
|
|
|
|
*finaliseTask() {
|
|
|
|
yield this.feature.set('launchComplete', true);
|
|
|
|
this.router.transitionTo('dashboard');
|
2021-02-23 13:18:37 +03:00
|
|
|
this.notifications.showNotification(
|
|
|
|
'Launch complete!',
|
|
|
|
{type: 'success', actions: htmlSafe('<a href="#/posts">Start creating content</a>')}
|
|
|
|
);
|
2021-02-04 21:35:19 +03:00
|
|
|
}
|
2021-02-23 13:18:37 +03:00
|
|
|
}
|