Skip to content

Commit

Permalink
chore(ui): start product tour by clicking on first car on welcome page (
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic authored Jan 24, 2025
1 parent 460e037 commit effb5a2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/src/components/onboarding/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</template>
</top-nav-bar>
<div class="main">
<div class="section-1">
<div @click="startTour()" class="cursor-pointer section-1">
<div class="section-1-main">
<div class="section-content">
<img
Expand Down Expand Up @@ -87,6 +87,13 @@
default: true
}
},
methods: {
startTour() {
localStorage.setItem("tourDoneOrSkip", undefined);
this.$store.commit("core/setGuidedProperties", {tourStarted: false});
this.$tours["guidedTour"]?.start();
},
},
computed: {
...mapGetters("core", ["guidedProperties"]),
...mapState("auth", ["user"]),
Expand Down

0 comments on commit effb5a2

Please sign in to comment.