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 authored and Dietmar Maurer committed 2020-07-29 07:13:25 +02:00
1 parent 80db161e05
commit 71282dd988
1 file changed
+3
+3
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 '';
}