Merge remote-tracking branch 'upstream/master'

Conflicts:
	auto/gui.files.go
This commit is contained in:
Ryan Sullivan
2014-05-21 15:15:37 -04:00
3 changed files with 7 additions and 4 deletions

View File

@@ -234,6 +234,9 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
};
$scope.nodeName = function (nodeCfg) {
if (typeof nodeCfg === 'undefined') {
return "";
}
if (nodeCfg.Name) {
return nodeCfg.Name;
}
@@ -314,7 +317,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
});
$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) {
return n.NodeID !== $scope.currentNode.NodeID;
});