ServerAdministration.js: use localhost inside api path

This commit is contained in:
Dietmar Maurer 2019-01-25 13:14:43 +01:00
parent d1a35593cb
commit 68cacc0066

View File

@ -31,7 +31,7 @@ Ext.define('PBS.ServerAdministration', {
pmgproxy: true, pmgproxy: true,
pmgdaemon: true pmgdaemon: true
}, },
nodename: Proxmox.NodeName nodename: 'localhost'
}, },
{ {
xtype: 'proxmoxNodeAPT', xtype: 'proxmoxNodeAPT',
@ -42,17 +42,17 @@ Ext.define('PBS.ServerAdministration', {
disabled: true, disabled: true,
text: gettext('Upgrade'), text: gettext('Upgrade'),
handler: function() { handler: function() {
Proxmox.Utils.openXtermJsViewer('upgrade', 0, Proxmox.NodeName); Proxmox.Utils.openXtermJsViewer('upgrade', 0, 'localhost');
} }
}, },
itemId: 'updates', itemId: 'updates',
nodename: Proxmox.NodeName nodename: 'localhost'
}, },
{ {
xtype: 'proxmoxLogView', xtype: 'proxmoxLogView',
itemId: 'logs', itemId: 'logs',
title: gettext('Syslog'), title: gettext('Syslog'),
url: "/api2/extjs/nodes/" + Proxmox.NodeName + "/syslog", url: "/api2/extjs/nodes/localhost/syslog",
log_select_timespan: 1 log_select_timespan: 1
}, },
{ {
@ -60,7 +60,7 @@ Ext.define('PBS.ServerAdministration', {
itemId: 'tasks', itemId: 'tasks',
title: gettext('Tasks'), title: gettext('Tasks'),
height: 'auto', height: 'auto',
nodename: Proxmox.NodeName nodename: 'localhost'
} }
] ]
}); });