mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 14:49:31 +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', {
|
Ext.define('PVE.window.SafeDestroy', {
|
||||||
extend: 'Ext.window.Window',
|
extend: 'Ext.window.Window',
|
||||||
alias: 'widget.pveSafeDestroy',
|
alias: 'widget.pveSafeDestroy',
|
||||||
title: gettext('Are you sure ?'),
|
title: gettext('Are you sure?'),
|
||||||
modal: true,
|
modal: true,
|
||||||
buttonAlign: 'center',
|
buttonAlign: 'center',
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
itemId: 'safepanel',
|
||||||
|
xtype: 'container',
|
||||||
|
padding: 10,
|
||||||
|
width: 450,
|
||||||
|
layout: {
|
||||||
|
type: 'vbox',
|
||||||
|
align: 'stretch'
|
||||||
|
},
|
||||||
|
items: [
|
||||||
{
|
{
|
||||||
itemId: 'safepanel',
|
itemId: 'message',
|
||||||
xtype: 'container',
|
xtype: 'textarea',
|
||||||
padding: 10,
|
editable: false,
|
||||||
width: 450,
|
},
|
||||||
layout: {
|
{
|
||||||
type: 'vbox',
|
itemId: 'input',
|
||||||
align: 'stretch'
|
xtype: 'numberfield',
|
||||||
},
|
name: 'VM id',
|
||||||
items: [
|
fieldLabel: gettext('Please enter the VM ID to confirm'),
|
||||||
{
|
hideTrigger:true,
|
||||||
itemId: 'message',
|
allowBlank: false,
|
||||||
xtype: 'textarea',
|
listeners: {
|
||||||
editable: false,
|
change: function(f, value) {
|
||||||
},
|
if (value === this.vmid) {
|
||||||
{
|
this.submitBtn.enable();
|
||||||
itemId: 'input',
|
} else {
|
||||||
xtype: 'numberfield',
|
this.submitBtn.disable();
|
||||||
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: [
|
buttons: [
|
||||||
{
|
{
|
||||||
id: 'removeButton',
|
id: 'removeButton',
|
||||||
|
Loading…
Reference in New Issue
Block a user