From 71282dd988690fa1de9fb12e06045699bd215bf6 Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Tue, 28 Jul 2020 14:32:11 +0200 Subject: [PATCH] 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 --- www/DataStoreContent.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/DataStoreContent.js b/www/DataStoreContent.js index 1c08f56a..e8690486 100644 --- a/www/DataStoreContent.js +++ b/www/DataStoreContent.js @@ -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 ''; }