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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user