Parcourir la source

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

Audrius Butkevicius il y a 11 ans
Parent
commit
387f2f0a94
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 3 1
      gui/app.js
  2. 1 1
      internal/auto/gui.files.go

+ 3 - 1
gui/app.js

@@ -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(", ");

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
internal/auto/gui.files.go


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff