From 07618f8674b4c4cf7cb80e196a242d987bc9f4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Tue, 22 Dec 2020 22:37:29 +0100 Subject: [PATCH] gui: Fix missing sharing device when adding pending folder (#7227) --- gui/default/syncthing/core/syncthingController.js | 4 ++-- gui/default/untrusted/syncthing/core/syncthingController.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 2c05cffa6..4fa231b4f 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1781,7 +1781,7 @@ angular.module('syncthing.core') $scope.currentSharing.selected[n.deviceID] = true; }); $scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) { - return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID] + return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID]; }); if ($scope.currentFolder.versioning && $scope.currentFolder.versioning.type === "trashcan") { $scope.currentFolder.trashcanFileVersioning = true; @@ -1879,7 +1879,7 @@ angular.module('syncthing.core') initShareEditing('folder'); $scope.currentSharing.selected[device] = true; $scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) { - return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID] + return n.deviceID !== $scope.myID; }); $scope.ignores.text = ''; $scope.ignores.error = null; diff --git a/gui/default/untrusted/syncthing/core/syncthingController.js b/gui/default/untrusted/syncthing/core/syncthingController.js index 5fa58ed63..e0696c106 100755 --- a/gui/default/untrusted/syncthing/core/syncthingController.js +++ b/gui/default/untrusted/syncthing/core/syncthingController.js @@ -1798,7 +1798,7 @@ angular.module('syncthing.core') $scope.currentSharing.selected[n.deviceID] = true; }); $scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) { - return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID] + return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID]; }); if ($scope.currentFolder.versioning && $scope.currentFolder.versioning.type === "trashcan") { $scope.currentFolder.trashcanFileVersioning = true; @@ -1896,7 +1896,7 @@ angular.module('syncthing.core') initShareEditing('folder'); $scope.currentSharing.selected[device] = true; $scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) { - return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID] + return n.deviceID !== $scope.myID; }); $scope.ignores.text = ''; $scope.ignores.error = null;