diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index efdfcc0be..fd5aa8b5c 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1105,7 +1105,7 @@ angular.module('syncthing.core') }; $scope.setDevicePause = function (device, pause) { - $scope.devices[id].paused = pause; + $scope.devices[device].paused = pause; $scope.config.devices = $scope.deviceList(); $scope.saveConfig(); }; @@ -1466,6 +1466,7 @@ angular.module('syncthing.core') return; } + var id = $scope.currentDevice.deviceID delete $scope.devices[id]; $scope.config.devices = $scope.deviceList();