While refactoring, we forgot to replace the 'localhost' URL (which is
valid for PMG/PBS) with the actual nodename we have in Proxmox VE.
Do this by setting the correct URL in the viewModel right at the
start of the initComponent
We now also have the possibility to overwrite the url if we want
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
startParam: 'start',
limitParam: 'limit',
extraParams: '{extraParams}',
- url: "/api2/json/nodes/localhost/tasks",
+ url: '{url}',
},
listeners: {
prefetch: 'updateLayout',
initComponent: function() {
const me = this;
+ let nodename = me.nodename || 'localhost';
+ let url = me.url || `/api2/json/nodes/${nodename}/tasks`;
+ me.getViewModel().set('url', url);
+
let updateExtraFilters = function(name, value) {
let vm = me.getViewModel();
let extraFilter = Ext.clone(vm.get('extraFilter'));