gui: Fix missing sharing device when adding pending folder (#7227)
This commit is contained in:
@@ -1781,7 +1781,7 @@ angular.module('syncthing.core')
|
|||||||
$scope.currentSharing.selected[n.deviceID] = true;
|
$scope.currentSharing.selected[n.deviceID] = true;
|
||||||
});
|
});
|
||||||
$scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) {
|
$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") {
|
if ($scope.currentFolder.versioning && $scope.currentFolder.versioning.type === "trashcan") {
|
||||||
$scope.currentFolder.trashcanFileVersioning = true;
|
$scope.currentFolder.trashcanFileVersioning = true;
|
||||||
@@ -1879,7 +1879,7 @@ angular.module('syncthing.core')
|
|||||||
initShareEditing('folder');
|
initShareEditing('folder');
|
||||||
$scope.currentSharing.selected[device] = true;
|
$scope.currentSharing.selected[device] = true;
|
||||||
$scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) {
|
$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.text = '';
|
||||||
$scope.ignores.error = null;
|
$scope.ignores.error = null;
|
||||||
|
|||||||
@@ -1798,7 +1798,7 @@ angular.module('syncthing.core')
|
|||||||
$scope.currentSharing.selected[n.deviceID] = true;
|
$scope.currentSharing.selected[n.deviceID] = true;
|
||||||
});
|
});
|
||||||
$scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) {
|
$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") {
|
if ($scope.currentFolder.versioning && $scope.currentFolder.versioning.type === "trashcan") {
|
||||||
$scope.currentFolder.trashcanFileVersioning = true;
|
$scope.currentFolder.trashcanFileVersioning = true;
|
||||||
@@ -1896,7 +1896,7 @@ angular.module('syncthing.core')
|
|||||||
initShareEditing('folder');
|
initShareEditing('folder');
|
||||||
$scope.currentSharing.selected[device] = true;
|
$scope.currentSharing.selected[device] = true;
|
||||||
$scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) {
|
$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.text = '';
|
||||||
$scope.ignores.error = null;
|
$scope.ignores.error = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user