ui snapshot tree: add label when no new snapshot is possible

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-01-30 19:42:02 +01:00
parent 8adda6bef5
commit 3a1b1df94f

View 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,