[pbs-devel] [PATCH proxmox-backup 2/2] ui: fix in-progress snapshots always showing as "Encrypted"

Stefan Reiter s.reiter at proxmox.com
Tue Jul 28 14:32:11 CEST 2020


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

Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
 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 '';
 		}
-- 
2.20.1






More information about the pbs-devel mailing list