mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 14:50:23 +00:00
cleanup: run emacs indent-region on SafeDestroy.js
This commit is contained in:
parent
d59ed79b5d
commit
fd8a2eea60
@ -5,46 +5,46 @@
|
||||
Ext.define('PVE.window.SafeDestroy', {
|
||||
extend: 'Ext.window.Window',
|
||||
alias: 'widget.pveSafeDestroy',
|
||||
title: gettext('Are you sure ?'),
|
||||
title: gettext('Are you sure?'),
|
||||
modal: true,
|
||||
buttonAlign: 'center',
|
||||
|
||||
items: [
|
||||
{
|
||||
itemId: 'safepanel',
|
||||
xtype: 'container',
|
||||
padding: 10,
|
||||
width: 450,
|
||||
layout: {
|
||||
type: 'vbox',
|
||||
align: 'stretch'
|
||||
},
|
||||
items: [
|
||||
{
|
||||
itemId: 'safepanel',
|
||||
xtype: 'container',
|
||||
padding: 10,
|
||||
width: 450,
|
||||
layout: {
|
||||
type: 'vbox',
|
||||
align: 'stretch'
|
||||
},
|
||||
items: [
|
||||
{
|
||||
itemId: 'message',
|
||||
xtype: 'textarea',
|
||||
editable: false,
|
||||
},
|
||||
{
|
||||
itemId: 'input',
|
||||
xtype: 'numberfield',
|
||||
name: 'VM id',
|
||||
fieldLabel: gettext('Please enter the VM ID to confirm'),
|
||||
hideTrigger:true,
|
||||
allowBlank: false,
|
||||
listeners: {
|
||||
change: function(f, value) {
|
||||
if (value === this.vmid) {
|
||||
this.submitBtn.enable();
|
||||
} else {
|
||||
this.submitBtn.disable();
|
||||
}
|
||||
}
|
||||
itemId: 'message',
|
||||
xtype: 'textarea',
|
||||
editable: false,
|
||||
},
|
||||
{
|
||||
itemId: 'input',
|
||||
xtype: 'numberfield',
|
||||
name: 'VM id',
|
||||
fieldLabel: gettext('Please enter the VM ID to confirm'),
|
||||
hideTrigger:true,
|
||||
allowBlank: false,
|
||||
listeners: {
|
||||
change: function(f, value) {
|
||||
if (value === this.vmid) {
|
||||
this.submitBtn.enable();
|
||||
} else {
|
||||
this.submitBtn.disable();
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
]
|
||||
}
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
id: 'removeButton',
|
||||
@ -83,4 +83,4 @@ Ext.define('PVE.window.SafeDestroy', {
|
||||
me.getComponent('safepanel').getComponent('input').vmid = me.vmid;
|
||||
me.getComponent('safepanel').getComponent('input').submitBtn = submitBtn;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user