mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
The list of unshared devices is built from deviceList(), which sorts the result. But the shared devices are listed in undefined order from the unsorted currentFolder.devices array. Apply the same sorting after building the array used in the dialog.
This commit is contained in:
parent
721cd740d8
commit
a5792f3c42
@ -799,6 +799,7 @@ angular.module('syncthing.core')
|
|||||||
}
|
}
|
||||||
$scope.currentSharing.selected[n.deviceID] = true;
|
$scope.currentSharing.selected[n.deviceID] = true;
|
||||||
});
|
});
|
||||||
|
$scope.currentSharing.shared.sort(deviceCompare);
|
||||||
$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];
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user