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

remove PVE.data.PendingObjectStore (not required)

parent 36be2857
...@@ -19,7 +19,6 @@ JSSRC= \ ...@@ -19,7 +19,6 @@ JSSRC= \
data/UpdateStore.js \ data/UpdateStore.js \
data/DiffStore.js \ data/DiffStore.js \
data/ObjectStore.js \ data/ObjectStore.js \
data/PendingObjectStore.js \
data/ResourceStore.js \ data/ResourceStore.js \
form/VLanField.js \ form/VLanField.js \
form/Checkbox.js \ form/Checkbox.js \
......
...@@ -18,7 +18,8 @@ Ext.define('PVE.data.ObjectStore', { ...@@ -18,7 +18,8 @@ Ext.define('PVE.data.ObjectStore', {
extraParams: config.extraParams, extraParams: config.extraParams,
reader: { reader: {
type: 'jsonobject', 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', { ...@@ -58,12 +58,13 @@ Ext.define('PVE.grid.PendingObjectGrid', {
throw "no url specified"; throw "no url specified";
} }
me.rstore = Ext.create('PVE.data.ObjectStore', {
me.rstore = Ext.create('PVE.data.PendingObjectStore', { model: 'KeyValuePendingDelete',
readArray: true,
url: me.url, url: me.url,
interval: me.interval, interval: me.interval,
extraParams: me.extraParams, 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