juci-network-netifd: show green icon if linkspeed == Auto
authorReidar Cederqvist <reidar.cederqvist@gmail.com>
Thu, 19 Jul 2018 12:54:20 +0000 (14:54 +0200)
committerSukru Senli <sukru.senli@inteno.se>
Sat, 1 Sep 2018 09:23:00 +0000 (11:23 +0200)
plugins/juci-network-netifd/src/widgets/overview-slider-network.js

index 591306b..407d934 100644 (file)
@@ -125,7 +125,7 @@ JUCI.app
                                        return "img/Wifi_Client_Green.png";
                                }else{
                                        if(!dev.linkspeed) return "img/Laptop_Red.png";
-                                       if(dev.linkspeed.match("1000")) return "img/Laptop_Green.png";
+                                       if(dev.linkspeed.match("1000") || dev.linkspeed.match("Auto")) return "img/Laptop_Green.png";
                                        return "img/Laptop_Yellow.png";
                                }
                        case "asc":