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/BackupConfig.js \
|
||||
window/Settings.js \
|
||||
window/StartupEdit.js \
|
||||
panel/NotesView.js \
|
||||
grid/SelectFeature.js \
|
||||
grid/ObjectGrid.js \
|
||||
@ -147,7 +148,6 @@ JSSRC= \
|
||||
qemu/DisplayEdit.js \
|
||||
qemu/KeyboardEdit.js \
|
||||
qemu/HardwareView.js \
|
||||
qemu/StartupEdit.js \
|
||||
qemu/ScsiHwEdit.js \
|
||||
qemu/QemuBiosEdit.js \
|
||||
qemu/Options.js \
|
||||
|
@ -73,7 +73,10 @@ Ext.define('PVE.qemu.Options', {
|
||||
defaultValue: '',
|
||||
renderer: PVE.Utils.render_kvm_startup,
|
||||
editor: caps.vms['VM.Config.Options'] && caps.nodes['Sys.Modify'] ?
|
||||
'PVE.qemu.StartupEdit' : undefined
|
||||
{
|
||||
xtype: 'pveWindowStartupEdit',
|
||||
onlineHelp: 'qm_startup_and_shutdown'
|
||||
} : undefined
|
||||
},
|
||||
ostype: {
|
||||
header: gettext('OS Type'),
|
||||
|
@ -1,4 +1,4 @@
|
||||
Ext.define('PVE.qemu.StartupInputPanel', {
|
||||
Ext.define('PVE.panel.StartupInputPanel', {
|
||||
extend: 'PVE.panel.InputPanel',
|
||||
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',
|
||||
alias: 'widget.pveWindowStartupEdit',
|
||||
onlineHelp: undefined,
|
||||
|
||||
initComponent : function() {
|
||||
/*jslint confusion: true */
|
||||
|
||||
var me = this;
|
||||
|
||||
var ipanel = Ext.create('PVE.qemu.StartupInputPanel', {});
|
||||
var ipanelConfig = me.onlineHelp ? {onlineHelp: me.onlineHelp} : {};
|
||||
var ipanel = Ext.create('PVE.panel.StartupInputPanel', ipanelConfig);
|
||||
|
||||
Ext.applyIf(me, {
|
||||
subject: gettext('Start/Shutdown order'),
|
Loading…
Reference in New Issue
Block a user