Updated upnp response listener code. Updated hue api. Updated input

areas for urls to be textareas to handle long strings. Added sorting to
all lists.
This commit is contained in:
Admin
2015-08-31 16:44:38 -05:00
parent eee0394f20
commit 6c99358f95
10 changed files with 130 additions and 43 deletions

View File

@@ -207,6 +207,12 @@ app.controller('ViewingController', function ($scope, $location, bridgeService,
$scope.BridgeSettings = bridgeService.BridgeSettings;
bridgeService.viewDevices();
$scope.bridge = bridgeService.state;
$scope.predicate = 'name';
$scope.reverse = true;
$scope.order = function(predicate) {
$scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;
$scope.predicate = predicate;
};
$scope.deleteDevice = function (device) {
bridgeService.deleteDevice(device.id);
};
@@ -233,7 +239,13 @@ app.controller('AddingController', function ($scope, bridgeService, BridgeSettin
bridgeService.viewVeraScenes();
$scope.bridge = bridgeService.state;
$scope.device = bridgeService.state.device;
$scope.predicate = 'name';
$scope.reverse = true;
$scope.order = function(predicate) {
$scope.reverse = ($scope.predicate === predicate) ? !$scope.reverse : false;
$scope.predicate = predicate;
};
$scope.buildUrlsUsingDevice = function () {
if ($scope.vera.base.indexOf("http") < 0) {
$scope.vera.base = "http://" + $scope.vera.base;