Browse Source

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

Audrius Butkevicius 11 năm trước cách đây
mục cha
commit
387f2f0a94
2 tập tin đã thay đổi với 4 bổ sung2 xóa
  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(", ");

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
internal/auto/gui.files.go


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác