Skip to content

Commit

Permalink
feat(ui): home without execution landing
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Mar 2, 2023
1 parent c66e2ca commit c35ccaf
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 13 deletions.
9 changes: 3 additions & 6 deletions ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
if (this.created === false) {
this.displayApp()
this.loadGeneralRessources()
this.initGuidedTour();
}
},
methods: {
Expand Down Expand Up @@ -91,20 +92,16 @@
uid: uid,
});
})
this.redirectToWelcome();
},
redirectToWelcome() {
initGuidedTour() {
this.$store.dispatch("flow/findFlows", {limit: 1})
.then(flows => {
this.$store.commit("flow/setOverallTotal", flows.total);
if (flows.total === 0 && this.$route.name === "home" && localStorage.getItem("tourDoneOrSkip") !== "true") {
this.$router.push({name: "welcome"});
}
});
}
},
},
watch: {
$route(to) {
Expand Down
27 changes: 27 additions & 0 deletions ui/src/assets/home/execute-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ui/src/assets/home/execute-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c35ccaf

Please sign in to comment.