Commit c7e2c57f authored by Sukru Senli's avatar Sukru Senli

fixes to wifi and lan overview widgets

parent d14e1b83
......@@ -56,10 +56,6 @@ JUCI.app
}
$scope.style = "overflow:hidden;max-width:0;text-overflow:ellipsis;white-space:nowrap;";
$uci.$sync("ports").done(function(){
$scope.ports = {};
$uci.ports["@ethport"].map(function(port){
$scope.ports[port.ifname.value] = port.name.value
});
$scope.setOrder = function(col, colname){
if(!$scope.order[colname]) return;
if($scope.order[colname].column === col) $scope.order[colname].reverse = !$scope.order[colname].reverse;
......
......@@ -20,10 +20,10 @@
JUCI.app
.controller("wirelessWPSPage", function($scope, $localStorage, $wireless, $rpc, gettext, $tr, $events, $uci){
$scope.has_setpin = $rpc.$has("wifix.wps", "setpin");
$scope.has_showpin = $rpc.$has("wifix.wps", "showpin");
$scope.has_pbc = $rpc.$has("wifix.wps", "pbc");
$scope.has_stapin = $rpc.$has("wifix.wps", "stapin");
$scope.has_setpin = $rpc.$has("wifi.wps", "setpin");
$scope.has_showpin = $rpc.$has("wifi.wps", "showpin");
$scope.has_pbc = $rpc.$has("wifi.wps", "pbc");
$scope.has_stapin = $rpc.$has("wifi.wps", "stapin");
$scope.showExpert = $localStorage.getItem("mode") == "expert";
$scope.wifiIfaces = [];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment