summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorGeorge Moschovitis <george.moschovitis@gmail.com>2019-03-07 19:12:34 +0200
committerGitHub <noreply@github.com>2019-03-07 19:12:34 +0200
commit3da66e687403a7ab94a25e95134c49f38c857fcf (patch)
tree8c46e4ec18f223ea945fd9dbe50ca3da29d2f8af /web
parent2175673e29f8ee35d2e48719c6cf0169ddd31405 (diff)
Fix incorrect icon for streaming master #5560 (#5561)
* Pass additional details to be used in the authorization form. * Fix incorrect marking of streaming master #5560
Diffstat (limited to 'web')
-rw-r--r--web/gui/index.html2
-rw-r--r--web/gui/main.js6
2 files changed, 5 insertions, 3 deletions
diff --git a/web/gui/index.html b/web/gui/index.html
index faee5ba910..08bd863d04 100644
--- a/web/gui/index.html
+++ b/web/gui/index.html
@@ -58,7 +58,7 @@
<meta name="twitter:description" content="Unparalleled insights, in real-time, of everything happening on your Linux systems and applications, with stunning, interactive web dashboards and powerful performance and health alarms." />
<meta name="twitter:image" content="https://cloud.githubusercontent.com/assets/2662304/14092712/93b039ea-f551-11e5-822c-beadbf2b2a2e.gif" />
- <script src="main.js?v=4"></script>
+ <script src="main.js?v=5"></script>
</head>
<body data-spy="scroll" data-target="#sidebar" data-offset="100">
diff --git a/web/gui/main.js b/web/gui/main.js
index c5f4eb50bc..c6a2bac135 100644
--- a/web/gui/main.js
+++ b/web/gui/main.js
@@ -495,7 +495,9 @@ function renderStreamedHosts(options) {
}
var master = options.hosts[0].hostname;
- var sorted = options.hosts.sort(function (a, b) {
+ // We sort a clone of options.hosts, to keep the master as the first element
+ // for future calls.
+ var sorted = options.hosts.slice(0).sort(function (a, b) {
if (a.hostname === master) {
return -1;
}
@@ -4744,7 +4746,7 @@ function clearCloudLocalStorageItems() {
}
function signIn() {
- const url = `${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?id=${NETDATA.registry.machine_guid}&origin=${encodeURIComponent(window.location.origin + "/")}`;
+ const url = `${NETDATA.registry.cloudBaseURL}/account/sign-in-agent?id=${NETDATA.registry.machine_guid}&name=${encodeURIComponent(NETDATA.registry.hostname)}&origin=${encodeURIComponent(window.location.origin + "/")}`;
window.open(url);
}