node: repo: use more stati-schema like code style to configure store
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
7705801f48
commit
eb1fff8294
@ -378,6 +378,18 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
store: {
|
||||
model: 'apt-repolist',
|
||||
groupField: 'Path',
|
||||
sorters: [
|
||||
{
|
||||
property: 'Index',
|
||||
direction: 'ASC',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
initComponent: function() {
|
||||
let me = this;
|
||||
|
||||
@ -385,20 +397,6 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
||||
throw "no node name specified";
|
||||
}
|
||||
|
||||
let store = Ext.create('Ext.data.Store', {
|
||||
model: 'apt-repolist',
|
||||
groupField: 'Path',
|
||||
sorters: [
|
||||
{
|
||||
property: 'Index',
|
||||
direction: 'ASC',
|
||||
},
|
||||
],
|
||||
});
|
||||
Ext.apply(me, {
|
||||
store: store,
|
||||
});
|
||||
|
||||
me.callParent();
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user