Ext.define('PVE.storage.BaseEdit', {
extend: 'Proxmox.window.Edit',
+ apiCallDone: function(success, response, options) {
+ let me = this;
+ if (typeof me.ipanel.apiCallDone === "function") {
+ me.ipanel.apiCallDone(success, response, options);
+ }
+ },
+
initComponent : function() {
var me = this;
me.method = 'PUT';
}
- var ipanel = Ext.create(me.paneltype, {
+ me.ipanel = Ext.create(me.paneltype, {
type: me.type,
isCreate: me.isCreate,
storageId: me.storageId
Ext.apply(me, {
subject: PVE.Utils.format_storage_type(me.type),
isAdd: true,
- items: [ ipanel ]
+ items: [ me.ipanel ]
});
me.callParent();
}
values.enable = values.disable ? 0 : 1;
- ipanel.setValues(values);
+ me.ipanel.setValues(values);
}
});
}