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:
parent
80db161e05
commit
71282dd988
@ -549,6 +549,9 @@ Ext.define('PBS.DataStoreContent', {
|
|||||||
header: gettext('Encrypted'),
|
header: gettext('Encrypted'),
|
||||||
dataIndex: 'crypt-mode',
|
dataIndex: 'crypt-mode',
|
||||||
renderer: (v, meta, record) => {
|
renderer: (v, meta, record) => {
|
||||||
|
if (record.data.size === undefined || record.data.size === null) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
if (v === -1) {
|
if (v === -1) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user