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,14 +378,8 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
},
],
initComponent: function() {
let me = this;
if (!me.nodename) {
throw "no node name specified";
}
let store = Ext.create('Ext.data.Store', {
store: {
model: 'apt-repolist',
groupField: 'Path',
sorters: [
@ -394,10 +388,14 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
direction: 'ASC',
},
],
});
Ext.apply(me, {
store: store,
});
},
initComponent: function() {
let me = this;
if (!me.nodename) {
throw "no node name specified";
}
me.callParent();
},