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 b9c780c5a8
commit e1af138576

View File

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