fix: hide Firmware update button if admin not loged in

This commit is contained in:
ISA
2025-07-01 07:17:40 +02:00
parent b447a80757
commit ecb818e248
11 changed files with 69 additions and 18 deletions

View File

@@ -246,7 +246,15 @@ export default function KueEinstellung({
<div className="flex justify-end gap-2 p-0 rounded">
{isAdminLoggedIn && (
<button
onClick={() => firmwareUpdate(slot)}
onClick={() => {
if (
window.confirm(
"Warnung: Das Firmware-Update kann einige Minuten dauern und das Gerät neu starten.\nMöchten Sie wirklich fortfahren?"
)
) {
firmwareUpdate(slot);
}
}}
className="bg-littwin-blue text-white px-4 py-2 rounded flex items-center"
>
Firmware Update