Reinstate 'Shared With' until a better alternative emerges (ref #1054)

This commit is contained in:
Jakob Borg
2014-12-01 20:50:27 +01:00
parent c734e48ad0
commit a8ba7786ae
3 changed files with 17 additions and 2 deletions

View File

@@ -870,6 +870,17 @@ angular.module('syncthing.core')
$scope.saveConfig();
};
$scope.sharesFolder = function (folderCfg) {
var names = [];
folderCfg.Devices.forEach(function (device) {
if (device.DeviceID != $scope.myID) {
names.push($scope.deviceName($scope.findDevice(device.DeviceID)));
}
});
names.sort();
return names.join(", ");
}
$scope.deviceFolders = function (deviceCfg) {
var folders = [];
for (var folderID in $scope.folders) {