]> git.proxmox.com Git - pve-manager.git/commitdiff
ui snapshot tree: add label when no new snapshot is possible
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 30 Jan 2020 18:42:02 +0000 (19:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 30 Jan 2020 18:42:02 +0000 (19:42 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/tree/SnapshotTree.js

index 25f487abc51c9e568abaf7678788f65dca20106f..4f8340184956723abb5409431f5c460c03ae9df1 100644 (file)
@@ -233,6 +233,7 @@ Ext.define('PVE.guest.SnapshotTree', {
            },
            handler: 'newSnapshot',
        },
+       '-',
        {
            xtype: 'proxmoxButton',
            text: gettext('Rollback'),
@@ -276,7 +277,15 @@ Ext.define('PVE.guest.SnapshotTree', {
            disabled: true,
            edit: true,
            handler: 'editSnapshot',
-       }
+       },
+       {
+           xtype: 'label',
+           text: gettext("The current guest configuration does not support taking new snapshots"),
+           hidden: true,
+           bind: {
+               hidden: "{canSnapshot}",
+           },
+       },
     ],
 
     columnLines: true,