feat: alle KÜs Firmware update confirm

This commit is contained in:
ISA
2025-07-01 07:52:22 +02:00
parent ecb818e248
commit b0efd3aa0f
7 changed files with 28 additions and 6 deletions

View File

@@ -200,7 +200,14 @@ const GeneralSettings: React.FC = () => {
<button
type="button"
className="bg-littwin-blue text-white px-4 py-2 h-8 text-xs rounded whitespace-nowrap"
onClick={handleKueFirmwareUpdate}
onClick={() => {
const confirmed = window.confirm(
"⚠️ Wollen Sie wirklich ein Firmwareupdate für alle KÜ-Module starten?"
);
if (confirmed) {
handleKueFirmwareUpdate();
}
}}
>
Firmwareupdate alle -Module
</button>