fix #2572: gui: make snapshot panel visible for VM.Audit

with the now rewritten panels, this works as expected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-01-30 16:58:53 +01:00 committed by Thomas Lamprecht
parent ce2c0e3a41
commit 64279ad199
2 changed files with 4 additions and 2 deletions

View File

@ -262,7 +262,8 @@ Ext.define('PVE.lxc.Config', {
});
}
if ((caps.vms['VM.Snapshot'] || caps.vms['VM.Snapshot.Rollback']) && !template) {
if ((caps.vms['VM.Snapshot'] || caps.vms['VM.Snapshot.Rollback'] ||
caps.vms['VM.Audit']) && !template) {
me.items.push({
title: gettext('Snapshots'),
iconCls: 'fa fa-history',

View File

@ -294,7 +294,8 @@ Ext.define('PVE.qemu.Config', {
});
}
if ((caps.vms['VM.Snapshot'] || caps.vms['VM.Snapshot.Rollback']) && !template) {
if ((caps.vms['VM.Snapshot'] || caps.vms['VM.Snapshot.Rollback'] ||
caps.vms['VM.Audit']) && !template) {
me.items.push({
title: gettext('Snapshots'),
iconCls: 'fa fa-history',