Procházet zdrojové kódy

Fix Enabled/Disabled counter (#1847)

somebodywashere před 1 rokem
rodič
revize
7526c4d969
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      web/html/xui/inbounds.html

+ 2 - 2
web/html/xui/inbounds.html

@@ -651,9 +651,9 @@
                     clientCount = clients.length;
                     if (dbInbound.enable) {
                         clients.forEach(client => {
-                            if (client.enable && this.isClientOnline(client.email)) {
+                            if (client.enable) {
                                 active.push(client.email);
-                                online.push(client.email);
+                                if (this.isClientOnline(client.email)) online.push(client.email);
                             } else {
                                 deactive.push(client.email);
                             }