From 989a5ef18985366e976df5b49fccf069f5835c42 Mon Sep 17 00:00:00 2001 From: grimsi <9295182+grimsi@users.noreply.github.com> Date: Tue, 2 Sep 2025 14:13:46 +0200 Subject: [PATCH] Display toast when Gameyfin restarts --- .../administration/SystemManagement.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/app/src/main/frontend/components/administration/SystemManagement.tsx b/app/src/main/frontend/components/administration/SystemManagement.tsx index 0057fde..54246ed 100644 --- a/app/src/main/frontend/components/administration/SystemManagement.tsx +++ b/app/src/main/frontend/components/administration/SystemManagement.tsx @@ -1,14 +1,25 @@ import React from "react"; import {SystemEndpoint} from "Frontend/generated/endpoints"; import withConfigPage from "Frontend/components/administration/withConfigPage"; -import {Button} from "@heroui/react"; +import {addToast, Button} from "@heroui/react"; import Section from "Frontend/components/general/Section"; function SystemManagementLayout() { + + function restart() { + SystemEndpoint.restart().then(() => + addToast({ + title: "Restarting", + description: "Gameyfin is restarting. This may take a few moments.", + color: "success" + }) + ); + } + return (