Updating editing for Settings UI.

This commit is contained in:
bwssystems
2016-02-13 17:02:51 -06:00
parent c97ab2cd38
commit 9cb275230e
7 changed files with 86 additions and 38 deletions

View File

@@ -517,6 +517,13 @@ app.controller('SystemController', function ($scope, $location, $http, $window,
$scope.imgUrl = "glyphicon glyphicon-plus";
$scope.visibleBk = false;
$scope.imgBkUrl = "glyphicon glyphicon-plus";
$scope.addVeratoSettings = function (newveraname, newveraip) {
if($scope.bridge.settings.veraddress == null) {
$scope.bridge.settings.veraddress = { devices: [] };
}
$scope.bridge.settings.veraaddress.devices.push("{" +"\"name\":\"" + newveraname +"\",\"ip\":\"" + newveraip + "\"}");
};
$scope.saveSettings = function() {
bridgeService.saveSettings();
};