Fix delete node (fixes #250)

This commit is contained in:
Jakob Borg 2014-05-21 21:06:20 +02:00
parent 2331089854
commit 51bf15728a

View File

@ -308,7 +308,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
}); });
$scope.config.Nodes = $scope.nodes; $scope.config.Nodes = $scope.nodes;
for (var id in repos) { for (var id in $scope.repos) {
$scope.repos[id].Nodes = $scope.repos[id].Nodes.filter(function (n) { $scope.repos[id].Nodes = $scope.repos[id].Nodes.filter(function (n) {
return n.NodeID !== $scope.currentNode.NodeID; return n.NodeID !== $scope.currentNode.NodeID;
}); });