浏览代码

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

Audrius Butkevicius 11 年之前
父节点
当前提交
387f2f0a94
共有 2 个文件被更改,包括 4 次插入2 次删除
  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) {
     $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(", ");

文件差异内容过多而无法显示
+ 1 - 1
internal/auto/gui.files.go


部分文件因为文件数量过多而无法显示