Commit 0c66a0b2 authored by Dietmar Maurer's avatar Dietmar Maurer

remove PVE.data.PendingObjectStore (not required)

parent 36be2857
......@@ -19,7 +19,6 @@ JSSRC= \
data/UpdateStore.js \
data/DiffStore.js \
data/ObjectStore.js \
data/PendingObjectStore.js \
data/ResourceStore.js \
form/VLanField.js \
form/Checkbox.js \
......
......@@ -18,7 +18,8 @@ Ext.define('PVE.data.ObjectStore', {
extraParams: config.extraParams,
reader: {
type: 'jsonobject',
rows: config.rows
rows: config.rows,
readArray: config.readArray
}
}
});
......
Ext.define('PVE.data.PendingObjectStore', {
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: 'KeyValuePendingDelete',
proxy: {
type: 'pve',
url: config.url,
extraParams: config.extraParams,
reader: {
type: 'jsonobject',
rows: config.rows,
readArray: true
}
}
});
me.callParent([config]);
}
});
......@@ -58,12 +58,13 @@ Ext.define('PVE.grid.PendingObjectGrid', {
throw "no url specified";
}
me.rstore = Ext.create('PVE.data.PendingObjectStore', {
me.rstore = Ext.create('PVE.data.ObjectStore', {
model: 'KeyValuePendingDelete',
readArray: true,
url: me.url,
interval: me.interval,
extraParams: me.extraParams,
rows: me.rows,
rows: me.rows
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment