From ffb3ec0477eae7078b22b44a73ebeb6b11278949 Mon Sep 17 00:00:00 2001 From: henrygd Date: Fri, 2 May 2025 20:02:23 -0400 Subject: [PATCH] Fix broken link to notifications when using base path --- beszel/site/src/components/alerts/alert-button.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/beszel/site/src/components/alerts/alert-button.tsx b/beszel/site/src/components/alerts/alert-button.tsx index 47c5e92..28b2625 100644 --- a/beszel/site/src/components/alerts/alert-button.tsx +++ b/beszel/site/src/components/alerts/alert-button.tsx @@ -1,5 +1,5 @@ -import { t } from "@lingui/core/macro"; -import { Trans } from "@lingui/react/macro"; +import { t } from "@lingui/core/macro" +import { Trans } from "@lingui/react/macro" import { memo, useMemo, useState } from "react" import { useStore } from "@nanostores/react" import { $alerts } from "@/lib/stores" @@ -15,10 +15,11 @@ import { BellIcon, GlobeIcon, ServerIcon } from "lucide-react" import { alertInfo, cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { AlertRecord, SystemRecord } from "@/types" -import { Link } from "../router" +import { $router, Link } from "../router" import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { Checkbox } from "../ui/checkbox" import { SystemAlert, SystemAlertGlobal } from "./alerts-system" +import { getPagePath } from "@nanostores/router" export default memo(function AlertsButton({ system }: { system: SystemRecord }) { const alerts = useStore($alerts) @@ -81,7 +82,7 @@ function AlertDialogContent({ system }: { system: SystemRecord }) { See{" "} - + notification settings {" "} to configure how you receive alerts.