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:
Thomas Lamprecht 2021-07-03 16:34:38 +02:00
parent 7705801f48
commit eb1fff8294

View File

@ -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();
},
});