The mailq results are potentially very large, why a BufferedStore is used.
BufferedStores only support [0] remote filtering (which is already done) and
remote sorting (which this patch enables).
simpleSortMode (getting sortfield and sortdirection as two parameters instead
of an array with multiple objects containing those fields), is enabled to
work with our API.
[0] quite naturally, since you'd need to have the complete result to sort it,
however only documented in the source code (and not the reference docs)
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
xclass: 'Ext.data.BufferedStore',
model: 'pmg-mailq',
remoteFilter: true,
+ remoteSort: true,
pageSize: 2000
},
type: 'proxmox',
startParam: 'start',
limitParam: 'limit',
+ sortParam: 'sortfield',
+ directionParam: 'sortdir',
+ simpleSortMode: true,
url: "/api2/json/nodes/" + me.nodename + "/postfix/queue/" + me.queuename
};