fix: Modal nach Speichern der TDR-Einstellungen automatisch schließen

- onClose-Callback in TdrEinstellung korrekt übergeben und genutzt
- Modal schließt sich nach erfolgreichem Speichern (Alert bestätigt oder direkt)
- Nutzerführung verbessert und Verhalten vereinheitlicht
This commit is contained in:
Ismail Ali
2025-05-01 14:30:29 +02:00
parent acba477fdb
commit 283547d9bd
3 changed files with 9 additions and 3 deletions

View File

@@ -108,7 +108,9 @@ export default function KueModal({ showModal, onClose, slot }: KueModalProps) {
/>
</div>
{activeTab === "tdr" && <TdrEinstellung slot={slot} />}
{activeTab === "tdr" && (
<TdrEinstellung slot={slot} onClose={onClose} />
)}
{activeTab === "knoten" && <Knotenpunkte slot={slot} />}
</div>
</ReactModal>