@@ -213,6 +213,9 @@ angular.module('syncthing.core')
|
|||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on(Events.DEVICE_DISCONNECTED, function (event, arg) {
|
$scope.$on(Events.DEVICE_DISCONNECTED, function (event, arg) {
|
||||||
|
if (!$scope.connections[arg.data.id]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$scope.connections[arg.data.id].connected = false;
|
$scope.connections[arg.data.id].connected = false;
|
||||||
refreshDeviceStats();
|
refreshDeviceStats();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -213,6 +213,9 @@ angular.module('syncthing.core')
|
|||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on(Events.DEVICE_DISCONNECTED, function (event, arg) {
|
$scope.$on(Events.DEVICE_DISCONNECTED, function (event, arg) {
|
||||||
|
if (!$scope.connections[arg.data.id]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$scope.connections[arg.data.id].connected = false;
|
$scope.connections[arg.data.id].connected = false;
|
||||||
refreshDeviceStats();
|
refreshDeviceStats();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user