show mqtt reconnects the same way as network reconnects (count disconnects)

This commit is contained in:
MichaelDvP
2024-11-19 08:19:19 +01:00
parent e52f988261
commit d06ea9590e
3 changed files with 7 additions and 7 deletions

View File

@@ -70,9 +70,9 @@ const MqttStatus = () => {
return LL.NOT_ENABLED();
}
if (connected) {
return LL.CONNECTED(0) + (connect_count > 1 ? ' (' + connect_count + ')' : '');
return LL.CONNECTED(0) + ' (' + connect_count + ')';
}
return LL.DISCONNECTED() + (connect_count > 1 ? ' (' + connect_count + ')' : '');
return LL.DISCONNECTED() + ' (' + connect_count + ')';
};
const disconnectReason = ({ disconnect_reason }: MqttStatusType) => {