From 68cacc0066f13bcf1c91fea9506ea506f424ba6b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 25 Jan 2019 13:14:43 +0100 Subject: [PATCH] ServerAdministration.js: use localhost inside api path --- www/ServerAdministration.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/ServerAdministration.js b/www/ServerAdministration.js index 4001402c..17748394 100644 --- a/www/ServerAdministration.js +++ b/www/ServerAdministration.js @@ -31,7 +31,7 @@ Ext.define('PBS.ServerAdministration', { pmgproxy: true, pmgdaemon: true }, - nodename: Proxmox.NodeName + nodename: 'localhost' }, { xtype: 'proxmoxNodeAPT', @@ -42,17 +42,17 @@ Ext.define('PBS.ServerAdministration', { disabled: true, text: gettext('Upgrade'), handler: function() { - Proxmox.Utils.openXtermJsViewer('upgrade', 0, Proxmox.NodeName); + Proxmox.Utils.openXtermJsViewer('upgrade', 0, 'localhost'); } }, itemId: 'updates', - nodename: Proxmox.NodeName + nodename: 'localhost' }, { xtype: 'proxmoxLogView', itemId: 'logs', title: gettext('Syslog'), - url: "/api2/extjs/nodes/" + Proxmox.NodeName + "/syslog", + url: "/api2/extjs/nodes/localhost/syslog", log_select_timespan: 1 }, { @@ -60,7 +60,7 @@ Ext.define('PBS.ServerAdministration', { itemId: 'tasks', title: gettext('Tasks'), height: 'auto', - nodename: Proxmox.NodeName + nodename: 'localhost' } ] });