gui: Incorrect recv-enc folder status after revert (#7142)

This commit is contained in:
Simon Frei 2020-11-23 18:35:36 +01:00 committed by GitHub
parent 8ebd893349
commit 8e5c844370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -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';