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

This commit is contained in:
Audrius Butkevicius 2014-10-28 23:12:58 +00:00
parent b0d95d02be
commit 387f2f0a94
2 changed files with 5 additions and 8 deletions

View File

@ -879,7 +879,9 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http, $translate, $loca
$scope.sharesFolder = function (folderCfg) { $scope.sharesFolder = function (folderCfg) {
var names = []; var names = [];
folderCfg.Devices.forEach(function (device) { 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(); names.sort();
return names.join(", "); return names.join(", ");

File diff suppressed because one or more lines are too long