From 51bf15728a6175a8c07f13f548a1414342583742 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 21 May 2014 21:06:20 +0200 Subject: [PATCH 1/3] Fix delete node (fixes #250) --- gui/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/app.js b/gui/app.js index e64d933ac..78b23e79e 100644 --- a/gui/app.js +++ b/gui/app.js @@ -308,7 +308,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; }); From 8bba82a08d28b1be2717bafd76adcf855a6d6ce8 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 21 May 2014 21:07:37 +0200 Subject: [PATCH 2/3] Squelch interpolation errors at startup --- gui/app.js | 3 +++ gui/index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/app.js b/gui/app.js index 78b23e79e..0df763353 100644 --- a/gui/app.js +++ b/gui/app.js @@ -233,6 +233,9 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) { }; $scope.nodeName = function (nodeCfg) { + if (typeof nodeCfg === 'undefined') { + return ""; + } if (nodeCfg.Name) { return nodeCfg.Name; } diff --git a/gui/index.html b/gui/index.html index d3652438f..1dc1ac0e0 100644 --- a/gui/index.html +++ b/gui/index.html @@ -389,7 +389,7 @@
{{myID | chunkID}}
- +