Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
snapshotAllowed: false,
rollbackAllowed: false,
snapshotFeature: false,
+ running: false,
selected: '',
load_delay: 3000,
},
isCreate: !edit,
submitText: !edit ? gettext('Take Snapshot') : undefined,
snapname: snapname,
+ running: vm.get('running'),
});
win.show();
me.mon(win, 'destroy', me.reload, me);
item.leaf = true;
item.children = [];
if (item.name === 'current') {
+ vm.set('running', !!item.running);
digest = item.digest + item.running;
item.iconCls = PVE.Utils.get_object_icon_class(vm.get('type'), item);
} else {
},
{
xtype: 'proxmoxcheckbox',
- hidden: me.type !== 'qemu' || !me.isCreate,
- disabled: me.type !== 'qemu' || !me.isCreate,
+ hidden: me.type !== 'qemu' || !me.isCreate || !me.running,
+ disabled: me.type !== 'qemu' || !me.isCreate || !me.running,
name: 'vmstate',
uncheckedValue: 0,
defaultValue: 0,