diff --git a/app/dashboard/settings/Settings.tsx b/app/dashboard/settings/Settings.tsx index 3e714e6..3dd0938 100644 --- a/app/dashboard/settings/Settings.tsx +++ b/app/dashboard/settings/Settings.tsx @@ -74,6 +74,9 @@ export default function Settings() { const [gotifyToken, setGotifyToken] = useState("") const [ntfyUrl, setNtfyUrl] = useState("") const [ntfyToken, setNtfyToken] = useState("") + const [pushoverUrl, setPushoverUrl] = useState("") + const [pushoverToken, setPushoverToken] = useState("") + const [pushoverUser, setPushoverUser] = useState("") const [notifications, setNotifications] = useState([]) @@ -178,6 +181,9 @@ export default function Settings() { gotifyToken: gotifyToken, ntfyUrl: ntfyUrl, ntfyToken: ntfyToken, + pushoverUrl: pushoverUrl, + pushoverToken: pushoverToken, + pushoverUser: pushoverUser, }) getNotifications() } catch (error: any) { @@ -441,6 +447,7 @@ export default function Settings() { Discord Gotify Ntfy + Pushover {notificationType === "smtp" && ( @@ -601,6 +608,40 @@ export default function Settings() { )} + + {notificationType === "pushover" && ( +
+
+ + setPushoverUrl(e.target.value)} + /> +
+ +
+ + setPushoverToken(e.target.value)} + /> +
+ +
+ + setPushoverUser(e.target.value)} + /> +
+
+ )} @@ -705,6 +746,11 @@ export default function Settings() { )} + {notification.type === "pushover" && ( +
+ +
+ )}

{notification.type}

@@ -713,6 +759,7 @@ export default function Settings() { {notification.type === "discord" && "Discord webhook alerts"} {notification.type === "gotify" && "Gotify notifications"} {notification.type === "ntfy" && "Ntfy notifications"} + {notification.type === "pushover" && "Pushover notifications"}