@cryptotaxi247 / netdata-1 / commits / 2ee16d053

on cloud error, inform user to update their netdata. (#7750)

* on cloud error, inform user to update their netdata. * capitalize Netdata in error message Co-Authored-By: Joel Hans <joel.g.hans@gmail.com> * main.js: change "netdata.cloud" to "Netdata Cloud" in error message Co-authored-by: Joel Hans <joel.g.hans@gmail.com>

Jacek Kolasa committed Jan 16, 2020 at 20:33 UTC 2ee16d053a3afd1e7f1665b974001b410b7a94ef
1 file changed +6 -7
web/gui/main.js
+6 -7
@@ -707,10 +707,9 @@ function clearMyNetdataMenu() {
707 }
708
709 function errorMyNetdataMenu() {
710 - setMyNetdataMenu(`<div class="agent-item" style="white-space: nowrap">
710 + setMyNetdataMenu(`<div class="agent-item" style="padding: 0 8px">
711 <i class="fas fa-exclamation-triangle" style="color: red"></i>
712 - Cannot load known netdata agents from netdata.cloud!
713 - <div></div>
712 + Cannot load known Netdata agents from Netdata Cloud! Please make sure you have the latest version of Netdata.
713 </div>`);
714 }
715
@@ -965,7 +964,7 @@ function gotoServerModalHandler(guid) {
964
965 if (!isSignedIn()) {
966 // When the registry is enabled, if the user's known URLs are not working
968 - // we consult the registry to get additional URLs.
967 + // we consult the registry to get additional URLs.
968 setTimeout(function () {
969 if (gotoServerStop === false) {
970 document.getElementById('gotoServerResponse').innerHTML = '<b>Added all the known URLs for this machine.</b>';
@@ -5129,7 +5128,7 @@ function netdataRegistryCallback(machinesArray) {
5128 registryAgents = machinesArray;
5129
5130 if (isSignedIn()) {
5132 - // We call getCloudAccountAgents() here because it requires that
5131 + // We call getCloudAccountAgents() here because it requires that
5132 // NETDATA.registry is initialized.
5133 clearMyNetdataMenu();
5134 getCloudAccountAgents().then((agents) => {
@@ -5155,8 +5154,8 @@ function netdataRegistryCallback(machinesArray) {
5154 }
5155 };
5156
5158 -// If we know the cloudBaseURL and agentID from local storage render (eagerly)
5159 -// the account ui before receiving the definitive response from the web server.
5157 +// If we know the cloudBaseURL and agentID from local storage render (eagerly)
5158 +// the account ui before receiving the definitive response from the web server.
5159 // This improves the perceived performance.
5160 function tryFastInitCloud() {
5161 const baseURL = localStorage.getItem("cloud.baseURL");