mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-20 00:46:02 +00:00
Updating editing for Settings UI.
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user