Feat: Fenster nicht schließen für Firmware Update
This commit is contained in:
@@ -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 KÜ 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">KÜ {slotNumber ?? "-"}</label>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center space-x-2">
|
||||
|
||||
@@ -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 ? `KÜ ${selectedSlot + 1}` : "Kein KÜ gewählt"}
|
||||
</div>
|
||||
|
||||
{/* ✅ Referenz setzen */}
|
||||
|
||||
@@ -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 KÜ {slot + 1}</h2>
|
||||
<button onClick={onClose} className="text-2xl hover:text-gray-200">
|
||||
<i className="bi bi-x-circle-fill"></i>
|
||||
</button>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user