From 8e5c84437064fd33622d4f1084c60b811a3a458b Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Mon, 23 Nov 2020 18:35:36 +0100 Subject: [PATCH] gui: Incorrect recv-enc folder status after revert (#7142) --- .../untrusted/syncthing/core/syncthingController.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gui/default/untrusted/syncthing/core/syncthingController.js b/gui/default/untrusted/syncthing/core/syncthingController.js index 6ed603c6f..74d8dc8c7 100755 --- a/gui/default/untrusted/syncthing/core/syncthingController.js +++ b/gui/default/untrusted/syncthing/core/syncthingController.js @@ -887,13 +887,11 @@ angular.module('syncthing.core') if ($scope.hasFailedFiles(folderCfg.id)) { return 'faileditems'; } - if (folderInfo.receiveOnlyTotalItems) { - switch (folderCfg.type) { - case 'receiveonly': - return 'localadditions'; - case 'receiveencrypted': - return 'localunencrypted'; - } + if ($scope.hasReceiveOnlyChanged(folderCfg)) { + return 'localadditions'; + } + if ($scope.hasReceiveEncryptedItems(folderCfg)) { + return 'localunencrypted'; } if (folderCfg.devices.length <= 1) { return 'unshared';