height: 400,
isAdd: true,
isCreate: true,
- initComponent : function() {
-
+ initComponent: function() {
var me = this;
if (!me.pool) {
});
Ext.apply(me, {
subject: gettext('Virtual Machine'),
- items: [ vmsField, vmGrid ],
+ items: [vmsField, vmGrid],
});
me.callParent();
Ext.define('PVE.pool.AddStorage', {
extend: 'Proxmox.window.Edit',
- initComponent : function() {
-
+ initComponent: function() {
var me = this;
if (!me.pool) {
name: 'storage',
nodename: 'localhost',
autoSelect: false,
- value: '',
+ value: '',
fieldLabel: gettext("Storage"),
},
],
stateful: true,
stateId: 'grid-pool-members',
- initComponent : function() {
+ initComponent: function() {
var me = this;
if (!me.pool) {
model: 'PVEResources',
sorters: [
{
- property : 'type',
+ property: 'type',
direction: 'ASC',
},
],
text: gettext('Remove'),
disabled: true,
selModel: sm,
- confirmMsg: function (rec) {
+ confirmMsg: function(rec) {
return Ext.String.format(gettext('Are you sure you want to remove entry {0}'),
"'" + rec.data.id + "'");
},
callback: function() {
reload();
},
- failure: function (response, opts) {
+ failure: function(response, opts) {
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
},
});