ui: fix in-progress snapshots always showing as "Encrypted"

We can't know if they are encrypted or not when they're not even
finished yet.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2020-07-28 14:32:11 +02:00 committed by Dietmar Maurer
parent 80db161e05
commit 71282dd988

View File

@ -549,6 +549,9 @@ Ext.define('PBS.DataStoreContent', {
header: gettext('Encrypted'),
dataIndex: 'crypt-mode',
renderer: (v, meta, record) => {
if (record.data.size === undefined || record.data.size === null) {
return '';
}
if (v === -1) {
return '';
}