From be02bc78ad77b842dafbc7cf6a59fea07aa36bd5 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Fri, 3 Nov 2023 22:54:18 +0100 Subject: [PATCH] [client] Hide channels from guest view --- packages/client/src/pages/welcome.entrance.c.vue | 1 - packages/client/src/router.ts | 2 ++ packages/client/src/ui/visitor/b.vue | 4 ---- packages/client/src/ui/visitor/header.vue | 6 +----- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/client/src/pages/welcome.entrance.c.vue b/packages/client/src/pages/welcome.entrance.c.vue index 5e540a37a..461d74157 100644 --- a/packages/client/src/pages/welcome.entrance.c.vue +++ b/packages/client/src/pages/welcome.entrance.c.vue @@ -85,7 +85,6 @@ diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index 925bede67..a0a7ae9db 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -415,10 +415,12 @@ export const routes = [ { path: "/channels/:channelId", component: page(() => import("./pages/channel.vue")), + loginRequired: true, }, { path: "/channels", component: page(() => import("./pages/channels.vue")), + loginRequired: true, }, { path: "/registry/keys/system/:path(*)?", diff --git a/packages/client/src/ui/visitor/b.vue b/packages/client/src/ui/visitor/b.vue index 5131a7117..5c3ccd694 100644 --- a/packages/client/src/ui/visitor/b.vue +++ b/packages/client/src/ui/visitor/b.vue @@ -45,10 +45,6 @@ >{{ i18n.ts.explore }} - {{ i18n.ts.channel }} {{ i18n.ts.pages }}{{ i18n.ts.explore }} - {{ i18n.ts.channel }} {{ i18n.ts.pages }}