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