Kabelüberwachung: Anstatt Slot überall Steckplatz als Text verwenden

This commit is contained in:
ISA
2025-04-22 14:19:03 +02:00
parent f03b8ea6c8
commit b0c11160fc
4 changed files with 6 additions and 6 deletions

View File

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

View File

@@ -107,8 +107,8 @@ const TDRChartActionBar: React.FC = () => {
{/* 🧩 Slot-Anzeige (1-basiert für Benutzer) */} {/* 🧩 Slot-Anzeige (1-basiert für Benutzer) */}
<div className="text-sm font-semibold"> <div className="text-sm font-semibold">
{selectedSlot !== null {selectedSlot !== null
? `Slot ${selectedSlot + 1}` ? `Steckplatz ${selectedSlot + 1}`
: "Kein Slot gewählt"} : "Kein Steckplatz gewählt"}
</div> </div>
{/* ✅ Referenz setzen */} {/* ✅ Referenz setzen */}

View File

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

View File

@@ -6,5 +6,5 @@
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
*/ */
const webVersion = "1.6.250"; const webVersion = "1.6.251";
export default webVersion; export default webVersion;