Do not show self in shared with (fixes #915)

This commit is contained in:
Audrius Butkevicius committed 2014-11-01 23:10:39 +00:00
1 parent b0d95d02be
commit 387f2f0a94
2 files changed
+5 -8

No files matched your search

+3 -1
View File
@@ -879,7 +879,9 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http, $translate, $loca
$scope.sharesFolder = function (folderCfg) {
var names = [];
folderCfg.Devices.forEach(function (device) {
names.push($scope.deviceName($scope.findDevice(device.DeviceID)));
if (device.DeviceID != $scope.myID) {
names.push($scope.deviceName($scope.findDevice(device.DeviceID)));
}
});
names.sort();
return names.join(", ");