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:
parent
6fc1f786f4
commit
15d5096275
1 changed files with 7 additions and 1 deletions
|
@ -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>')}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue