소스 검색

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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
internal/auto/gui.files.go


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.