diff --git a/ui/src/components/notify/Bark.tsx b/ui/src/components/notify/Bark.tsx index 6584b542..0b651cb6 100644 --- a/ui/src/components/notify/Bark.tsx +++ b/ui/src/components/notify/Bark.tsx @@ -123,8 +123,13 @@ const Bark = () => { } }; + const [testing, setTesting] = useState(false); const handlePushTestClick = async () => { + if (testing) return; + try { + setTesting(true); + await notifyTest("bark"); toast({ @@ -139,6 +144,8 @@ const Bark = () => { description: `${t("settings.notification.push_test_message.failed.message")}: ${msg}`, variant: "destructive", }); + } finally { + setTesting(false); } }; @@ -238,6 +245,7 @@ const Bark = () => { + ); }); Button.displayName = "Button";