Skip to content

Commit

Permalink
fix: fix guide not display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed May 9, 2020
1 parent b72e068 commit e5bd9b2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/app/presentation/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,13 @@ config: {"rowHeight": "350px", "colors": [{"bg":"#e55852","font":"#b71a09"},{"bg
this.shepherdService.modal = true;
this.shepherdService.confirmCancel = false;
this.shepherdService.addSteps(this.steps);
this.shepherdService.onTourFinish = (completeOrCancel) => {
if (completeOrCancel === 'complete') {
this.storage.set('intro.hadDone', true).subscribe(() => {});
}
};

if (!isScullyRunning()) {
this.storage.get('intro.hadDone').subscribe((value: boolean) => {
const doneKey = 'intro.hadDone';
this.storage.get(doneKey).subscribe((value: boolean) => {
if (!value) {
this.shepherdService.start();
this.storage.set(doneKey, true).subscribe(() => {});
}
});
}
Expand Down

0 comments on commit e5bd9b2

Please sign in to comment.