generated from Dicken/dickendock
round12: FritzBox-Merge-Bug vor Doppel-Ausloesung fixen, Scan-Meldungen entschaerfen, Dienstname-Fallback aus Hostname statt IP
This commit is contained in:
@@ -338,8 +338,10 @@ function DeviceRow({ device }: { device: DeviceWithServices }) {
|
||||
mutationFn: () => scanDevice(device.id),
|
||||
onSuccess: (result) => {
|
||||
const portsText = result.ports.length > 0 ? result.ports.join(", ") : "keine";
|
||||
const pending = result.nameChanges.length + result.staleServices.length;
|
||||
setScanMessage(
|
||||
`Ports offen: ${portsText} · ${result.created} neu · ${result.updated} aktualisiert`
|
||||
`Ports offen: ${portsText} · ${result.created} neu` +
|
||||
(pending > 0 ? ` · ${pending} Änderung(en) warten auf Bestätigung` : "")
|
||||
);
|
||||
setStaleServices(result.staleServices);
|
||||
setNameChanges(result.nameChanges);
|
||||
|
||||
Reference in New Issue
Block a user