juci-wireless: do not show autochannel button if scantimer == 0 refs #14987
authorReidar Cederqvist <reidar.cederqvist@gmail.com>
Mon, 21 May 2018 08:54:57 +0000 (10:54 +0200)
committerReidar Cederqvist <reidar.cederqvist@gmail.com>
Mon, 21 May 2018 08:54:57 +0000 (10:54 +0200)
plugins/juci-wireless/src/pages/wireless-devices.js

index 2b73f71..d7055c7 100644 (file)
@@ -46,7 +46,7 @@ JUCI.app
                        }
                ];
                if(show_button){
-                       if(dev.channel.value !== "auto")
+                       if(dev.channel.value !== "auto" || dev.scantimer.value === 0)
                                return;
                        dev.$buttons.push({
                                label: $tr(gettext("Force Channel Selection")),