[pve-devel] [PATCH manager 3/3] fix #2572: gui: make snapshot panel visible for VM.Audit
Dominik Csapak
d.csapak at proxmox.com
Thu Jan 30 16:58:53 CET 2020
with the now rewritten panels, this works as expected
Signed-off-by: Dominik Csapak <d.csapak at 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
More information about the pve-devel
mailing list