gui: Fix missing sharing device when adding pending folder (#7227)

This commit is contained in:
André Colomb 2020-12-22 22:37:29 +01:00 committed by GitHub
parent 1555a4da7f
commit 07618f8674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;