Feat: Fenster nicht schließen für Firmware Update

This commit is contained in:
ISA
2025-07-24 12:15:50 +02:00
parent b7ff3b07cd
commit c1f6c19fdf
14 changed files with 27 additions and 28 deletions

View File

@@ -136,7 +136,7 @@ const LoopChartActionBar: React.FC = () => {
const type = selectedSlotType === "schleifenwiderstand" ? 4 : 3;
if (slotNumber === null) {
alert("⚠️ Bitte zuerst einen Steckplatz auswählen!");
alert("⚠️ Bitte zuerst einen auswählen!");
return;
}
@@ -193,9 +193,7 @@ const LoopChartActionBar: React.FC = () => {
return (
<div className="flex justify-between items-center p-2 bg-gray-100 rounded-lg space-x-2">
<div className="flex items-center">
<label className="text-sm font-semibold">
Steckplatz {slotNumber ?? "-"}
</label>
<label className="text-sm font-semibold"> {slotNumber ?? "-"}</label>
</div>
<div className="flex items-center space-x-2">

View File

@@ -106,9 +106,7 @@ const TDRChartActionBar: React.FC = () => {
<div className="flex justify-between items-center p-2 bg-gray-100 rounded-lg space-x-4">
{/* 🧩 Slot-Anzeige (1-basiert für Benutzer) */}
<div className="text-sm font-semibold">
{selectedSlot !== null
? `Steckplatz ${selectedSlot + 1}`
: "Kein Steckplatz gewählt"}
{selectedSlot !== null ? `${selectedSlot + 1}` : "Kein KÜ gewählt"}
</div>
{/* ✅ Referenz setzen */}

View File

@@ -67,9 +67,7 @@ export default function KueModal({ showModal, onClose, slot }: KueModalProps) {
}}
>
<div className="p-2 flex justify-between items-center rounded-t-md">
<h2 className="text-base font-bold">
Einstellungen Steckplatz {slot + 1}
</h2>
<h2 className="text-base font-bold">Einstellungen {slot + 1}</h2>
<button onClick={onClose} className="text-2xl hover:text-gray-200">
<i className="bi bi-x-circle-fill"></i>
</button>

View File

@@ -24,9 +24,11 @@ const ProgressModal: React.FC<Props> = ({ visible, progress, slot }) => {
Firmwareupdate läuft ...
{typeof slot === "number" ? ` ` : ""}
</h2>
Bitte Fenster nicht schließen
<h2></h2>
<div className="w-full bg-gray-200 rounded-full h-4">
<div
className="bg-blue-500 h-4 rounded-full transition-all duration-100"
className="bg-littwin-blue h-4 rounded-full transition-all duration-100"
style={{ width: `${progress}%` }}
></div>
</div>