Turn the qemu StartupEdit widget into a generic component
and use this component for Qemu.
This commit is contained in:
parent
3a8c61c7e0
commit
14b0c7ab23
@ -91,6 +91,7 @@ JSSRC= \
|
|||||||
window/SafeDestroy.js \
|
window/SafeDestroy.js \
|
||||||
window/BackupConfig.js \
|
window/BackupConfig.js \
|
||||||
window/Settings.js \
|
window/Settings.js \
|
||||||
|
window/StartupEdit.js \
|
||||||
panel/NotesView.js \
|
panel/NotesView.js \
|
||||||
grid/SelectFeature.js \
|
grid/SelectFeature.js \
|
||||||
grid/ObjectGrid.js \
|
grid/ObjectGrid.js \
|
||||||
@ -147,7 +148,6 @@ JSSRC= \
|
|||||||
qemu/DisplayEdit.js \
|
qemu/DisplayEdit.js \
|
||||||
qemu/KeyboardEdit.js \
|
qemu/KeyboardEdit.js \
|
||||||
qemu/HardwareView.js \
|
qemu/HardwareView.js \
|
||||||
qemu/StartupEdit.js \
|
|
||||||
qemu/ScsiHwEdit.js \
|
qemu/ScsiHwEdit.js \
|
||||||
qemu/QemuBiosEdit.js \
|
qemu/QemuBiosEdit.js \
|
||||||
qemu/Options.js \
|
qemu/Options.js \
|
||||||
|
@ -73,7 +73,10 @@ Ext.define('PVE.qemu.Options', {
|
|||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
renderer: PVE.Utils.render_kvm_startup,
|
renderer: PVE.Utils.render_kvm_startup,
|
||||||
editor: caps.vms['VM.Config.Options'] && caps.nodes['Sys.Modify'] ?
|
editor: caps.vms['VM.Config.Options'] && caps.nodes['Sys.Modify'] ?
|
||||||
'PVE.qemu.StartupEdit' : undefined
|
{
|
||||||
|
xtype: 'pveWindowStartupEdit',
|
||||||
|
onlineHelp: 'qm_startup_and_shutdown'
|
||||||
|
} : undefined
|
||||||
},
|
},
|
||||||
ostype: {
|
ostype: {
|
||||||
header: gettext('OS Type'),
|
header: gettext('OS Type'),
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Ext.define('PVE.qemu.StartupInputPanel', {
|
Ext.define('PVE.panel.StartupInputPanel', {
|
||||||
extend: 'PVE.panel.InputPanel',
|
extend: 'PVE.panel.InputPanel',
|
||||||
onlineHelp: 'qm_startup_and_shutdown',
|
onlineHelp: 'qm_startup_and_shutdown',
|
||||||
|
|
||||||
@ -54,15 +54,17 @@ Ext.define('PVE.qemu.StartupInputPanel', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Ext.define('PVE.qemu.StartupEdit', {
|
Ext.define('PVE.window.StartupEdit', {
|
||||||
extend: 'PVE.window.Edit',
|
extend: 'PVE.window.Edit',
|
||||||
|
alias: 'widget.pveWindowStartupEdit',
|
||||||
|
onlineHelp: undefined,
|
||||||
|
|
||||||
initComponent : function() {
|
initComponent : function() {
|
||||||
/*jslint confusion: true */
|
/*jslint confusion: true */
|
||||||
|
|
||||||
var me = this;
|
var me = this;
|
||||||
|
var ipanelConfig = me.onlineHelp ? {onlineHelp: me.onlineHelp} : {};
|
||||||
var ipanel = Ext.create('PVE.qemu.StartupInputPanel', {});
|
var ipanel = Ext.create('PVE.panel.StartupInputPanel', ipanelConfig);
|
||||||
|
|
||||||
Ext.applyIf(me, {
|
Ext.applyIf(me, {
|
||||||
subject: gettext('Start/Shutdown order'),
|
subject: gettext('Start/Shutdown order'),
|
Loading…
Reference in New Issue
Block a user