mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 10:28:14 +00:00
copy data/ObjectStore.js from manager to manager5
This commit is contained in:
parent
ffa0c8ec0a
commit
ff6260d6ba
29
www/manager5/data/ObjectStore.js
Normal file
29
www/manager5/data/ObjectStore.js
Normal file
@ -0,0 +1,29 @@
|
||||
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]);
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user