gui: Incorrect recv-enc folder status after revert (#7142)
This commit is contained in:
parent
8ebd893349
commit
8e5c844370
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue