diff options
Diffstat (limited to 'gui/default/syncthing/core/syncthingController.js')
-rwxr-xr-x | gui/default/syncthing/core/syncthingController.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 54b0a96ee..51f08d050 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -2662,6 +2662,15 @@ angular.module('syncthing.core') + '&device=' + encodeURIComponent(deviceID)); }; + $scope.folderIsSharedEncrypted = function (folderID, deviceID) { + var folderCfg = $scope.folders[folderID]; + if (!folderCfg || folderCfg.type === 'receiveencrypted') return false; + + return folderCfg.devices.some(function (device) { + return device.deviceID === deviceID && device.encryptionPassword !== ''; + }); + }; + $scope.folderHasUnacceptedDevices = function (folderCfg) { for (var deviceID in $scope.completion) { if (deviceID in $scope.devices |