diff --git a/apps/ui/src/routes/__layout.svelte b/apps/ui/src/routes/__layout.svelte index 82c6e2273..7b1183745 100644 --- a/apps/ui/src/routes/__layout.svelte +++ b/apps/ui/src/routes/__layout.svelte @@ -68,7 +68,6 @@ export let sentryDSN: any; export let baseSettings: any; export let pendingInvitations: any = 0; - console.log(settings, sentryDSN); $appSession.isRegistrationEnabled = baseSettings.isRegistrationEnabled; $appSession.ipv4 = baseSettings.ipv4; @@ -107,7 +106,7 @@ if (teamId) $appSession.teamId = teamId; if (permission) $appSession.permission = permission; if (isAdmin) $appSession.isAdmin = isAdmin; - if (settings.doNotTrack === false) { + if (settings?.doNotTrack === false) { Sentry.init({ dsn: sentryDSN, environment: dev ? 'development' : 'production', @@ -125,14 +124,16 @@ } } onMount(async () => { - io.connect(); - io.on('start-service', (message) => { - const { serviceId, state } = message; - $status.service.startup[serviceId] = state; - if (state === 0 || state === 1) { - delete $status.service.startup[serviceId]; - } - }); + if ($appSession.userId) { + io.connect(); + io.on('start-service', (message) => { + const { serviceId, state } = message; + $status.service.startup[serviceId] = state; + if (state === 0 || state === 1) { + delete $status.service.startup[serviceId]; + } + }); + } }); @@ -156,6 +157,11 @@
{#if $appSession.userId} + IAM + Settings + Logout
- -IAM -Settings -Logout