mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-12 09:39:42 +00:00
30 lines
585 B
JavaScript
30 lines
585 B
JavaScript
Ext.define('PVE.data.ObjectStore', {
|
|
extend: 'PVE.data.UpdateStore',
|
|
|
|
constructor: function(config) {
|
|
var me = this;
|
|
|
|
config = config || {};
|
|
|
|
if (!config.storeid) {
|
|
config.storeid = 'pve-store-' + (++Ext.idSeed);
|
|
}
|
|
|
|
Ext.applyIf(config, {
|
|
model: 'KeyValue',
|
|
proxy: {
|
|
type: 'pve',
|
|
url: config.url,
|
|
extraParams: config.extraParams,
|
|
reader: {
|
|
type: 'jsonobject',
|
|
rows: config.rows,
|
|
readArray: config.readArray
|
|
}
|
|
}
|
|
});
|
|
|
|
me.callParent([config]);
|
|
}
|
|
});
|