ui: DataStoreContent: improve encrypted column

do not count files where we do not have any information

such files exist in the backup dir, but are not in the manifest
so we cannot use those files for determining if the backups are
encrypted or not

this marks encrypted/signed backups with unencrypted client.log.blob files as
encrypted/signed (respectively) instead of 'Mixed'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak authored and Thomas Lamprecht committed 2020-09-01 15:33:55 +02:00
1 parent 4f09d31085
commit 1bfdae7933
1 file changed
+1 -1
+1 -1
View File
@@ -30,8 +30,8 @@ Ext.define('pbs-data-store-snapshots', {
let mode = PBS.Utils.cryptmap.indexOf(file['crypt-mode']);
if (mode !== -1) {
crypt[file['crypt-mode']]++;
crypt.count++;
}
crypt.count++;
});
return PBS.Utils.calculateCryptMode(crypt);