]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/qemu/QemuBiosEdit.js
1 Ext
.define('PVE.qemu.BiosEdit', {
2 extend
: 'Proxmox.window.Edit',
3 alias
: 'widget.pveQemuBiosEdit',
5 initComponent : function() {
8 var EFIHint
= Ext
.createWidget({
9 xtype
: 'displayfield', //submitValue is false, so we don't get submitted
11 value
: 'You need to add an EFI disk for storing the ' +
12 'EFI settings. See the online help for details.',
19 xtype
: 'pveQemuBiosSelector',
20 onlineHelp
: 'qm_bios_and_uefi',
25 'change' : function(field
, newValue
) {
26 if (newValue
== 'ovmf') {
27 Proxmox
.Utils
.API2Request({
30 failure : function(response
, opts
) {
31 Ext
.Msg
.alert(gettext('Error'), response
.htmlStatus
);
33 success : function(response
, opts
) {
34 var vmConfig
= response
.result
.data
;
35 // there can be only one
36 if (!vmConfig
.efidisk0
) {
37 EFIHint
.setVisible(true);
42 if (EFIHint
.isVisible()) {
43 EFIHint
.setVisible(false);