Skip to content

Commit 18b1558

Browse files
luizhf42gustavosbarreto
authored andcommitted
fix(ui): show Setup view in Enterprise instances
1 parent 466245e commit 18b1558

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/src/router/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ export const routes: Array<RouteRecordRaw> = [
185185
path: "/sign-up",
186186
name: "SignUp",
187187
beforeEnter: (to, from, next) => {
188-
if (envVariables.isCommunity && !useUsersStore().systemInfo.setup) {
188+
console.log(envVariables);
189+
if (!envVariables.isCloud && !useUsersStore().systemInfo.setup) {
189190
next({ name: "Setup" });
190191
}
191192
next();
@@ -204,7 +205,7 @@ export const routes: Array<RouteRecordRaw> = [
204205
requiresAuth: false,
205206
},
206207
beforeEnter: (to, from, next) => {
207-
if (!envVariables.isCommunity || useUsersStore().systemInfo.setup) {
208+
if (envVariables.isCloud || useUsersStore().systemInfo.setup) {
208209
next({ name: "Login" });
209210
}
210211
next();

0 commit comments

Comments
 (0)