added ntfy

This commit is contained in:
PxlLoewe
2025-05-19 23:11:33 -07:00
parent 61e7caf6c8
commit 060810f1b0
11 changed files with 277 additions and 76 deletions

View File

@@ -130,16 +130,20 @@ export const ConnectionBtn = () => {
type="submit"
onSubmit={() => false}
onClick={() => {
connection.connect(
uid,
form.selectedStationId?.toString() || "",
form.logoffTime || "",
stations?.find(
(station) =>
station.id ===
parseInt(form.selectedStationId?.toString() || ""),
)!,
const selectedStation = stations?.find(
(station) =>
station.id ===
parseInt(form.selectedStationId?.toString() || ""),
);
if (selectedStation) {
connection.connect(
uid,
form.selectedStationId?.toString() || "",
form.logoffTime || "",
selectedStation,
session.data!.user,
);
}
}}
className="btn btn-soft btn-info"
>