Skip to content

Commit

Permalink
chore(ui): redirect to welcome page if there are no flows (#4246)
Browse files Browse the repository at this point in the history
* chore(ui): redirect to welcome page if there are no flows

* refactor(ui): removed duplicated home route definition
  • Loading branch information
MilosPaunovic authored Jul 5, 2024
1 parent 134a90d commit d3e67c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
},
watch: {
$route(to) {
if (this.user && to.name === "home" && this.overallTotal === 0) {
if (to.name === "home" && this.overallTotal === 0) {
this.$router.push({
name: "welcome",
params: {
Expand Down
1 change: 0 additions & 1 deletion ui/src/routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default [
{name: "root", path: "/", redirect: {name: "home"}},
{name: "home", path: "/:tenant?/dashboard", component: Home},
{name: "welcome", path: "/:tenant?/welcome", component: Welcome},
{name: "home", path: "/:tenant?/dashboard", component: Home},

//Flows
{name: "flows/list", path: "/:tenant?/flows", component: Flows},
Expand Down

0 comments on commit d3e67c0

Please sign in to comment.