mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-27 08:50:06 +00:00
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() {
|
initComponent: function() {
|
||||||
let me = this;
|
let me = this;
|
||||||
|
|
||||||
@ -385,20 +397,6 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
|||||||
throw "no node name specified";
|
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();
|
me.callParent();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user