0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Added success notification on launch wizard completion

no issue

- provide an indication of success and a "next step" option
This commit is contained in:
Kevin Ansfield 2021-02-23 10:18:37 +00:00
parent 6fc1f786f4
commit 15d5096275

View file

@ -1,14 +1,20 @@
import Component from '@glimmer/component'; import Component from '@glimmer/component';
import {htmlSafe} from '@ember/string';
import {inject as service} from '@ember/service'; import {inject as service} from '@ember/service';
import {task} from 'ember-concurrency-decorators'; import {task} from 'ember-concurrency-decorators';
export default class GhLaunchWizardFinaliseComponent extends Component { export default class GhLaunchWizardFinaliseComponent extends Component {
@service feature; @service feature;
@service notifications;
@service router; @service router;
@task @task
*finaliseTask() { *finaliseTask() {
yield this.feature.set('launchComplete', true); yield this.feature.set('launchComplete', true);
this.router.transitionTo('dashboard'); this.router.transitionTo('dashboard');
this.notifications.showNotification(
'Launch complete!',
{type: 'success', actions: htmlSafe('<a href="#/posts">Start creating content</a>')}
);
} }
} }