with the now rewritten panels, this works as expected

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 www/manager6/lxc/Config.js  | 3 ++-
 www/manager6/qemu/Config.js | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index 29464706..c2222d3a 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -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',
diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index ea8b6137..a13bf0c5 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -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',
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to