mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-11-02 21:22:42 +00:00
GUI option for VM protection added
v2 changes: GUI option for CT protection added
This commit is contained in:
parent
6380143afe
commit
d4e40874dd
@ -121,6 +121,23 @@ Ext.define('PVE.lxc.Options', {
|
||||
fieldLabel: gettext('Console mode')
|
||||
}
|
||||
} : undefined
|
||||
},
|
||||
protection: {
|
||||
header: gettext('CT protection'),
|
||||
defaultValue: false,
|
||||
renderer: PVE.Utils.format_boolean,
|
||||
editor: caps.vms['VM.Config.Options'] ? {
|
||||
xtype: 'pveWindowEdit',
|
||||
subject: gettext('CT protection'),
|
||||
items: {
|
||||
xtype: 'pvecheckbox',
|
||||
name: 'protection',
|
||||
uncheckedValue: 0,
|
||||
defaultValue: 0,
|
||||
deleteDefaultValue: true,
|
||||
fieldLabel: gettext('Enabled')
|
||||
}
|
||||
} : undefined
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -237,6 +237,23 @@ Ext.define('PVE.qemu.Options', {
|
||||
header: gettext('SMBIOS settings (type1)'),
|
||||
defaultValue: '',
|
||||
editor: caps.vms['VM.Config.HWType'] ? 'PVE.qemu.Smbios1Edit' : undefined
|
||||
},
|
||||
protection: {
|
||||
header: gettext('VM protection'),
|
||||
defaultValue: false,
|
||||
renderer: PVE.Utils.format_boolean,
|
||||
editor: caps.vms['VM.Config.Options'] ? {
|
||||
xtype: 'pveWindowEdit',
|
||||
subject: gettext('VM protection'),
|
||||
items: {
|
||||
xtype: 'pvecheckbox',
|
||||
name: 'protection',
|
||||
uncheckedValue: 0,
|
||||
defaultValue: 0,
|
||||
deleteDefaultValue: true,
|
||||
fieldLabel: gettext('Enabled')
|
||||
}
|
||||
} : undefined
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user