From 20c3b356c41ea80d762c52726a0ff0309fc822a3 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 28 Aug 2022 22:32:58 +0200 Subject: [PATCH] Integrated the update integration function into the DropdownComponent.jsx --- .../common/components/Dropdown/DropdownComponent.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/src/common/components/Dropdown/DropdownComponent.jsx b/client/src/common/components/Dropdown/DropdownComponent.jsx index 75a5d527..95b091af 100644 --- a/client/src/common/components/Dropdown/DropdownComponent.jsx +++ b/client/src/common/components/Dropdown/DropdownComponent.jsx @@ -266,6 +266,17 @@ function DropdownComponent() { buttonText: "Okay" }); + const updateIntegration = async () => patchDialog("healthChecksUrl", (value) => ({ + title: <>HealthChecks Integration ?, + placeholder: "HealthChecks Server URL", value, + buttonText: "Aktualisieren", + unsetButton: !value.includes(""), + unsetButtonText: "Deaktivieren", + onClear: () => fetch("/api/config/healthChecksUrl", {headers: headers, method: "PATCH", + body: JSON.stringify({value: "https://hc-ping.com/"}) + }).then(() => showFeedback(<>Die Healthchecks wurden deaktiviert)) + })); + return (