Merge pull request #959 from influxdata/fix/855-loading-hosts
#855 - don't show "loading hosts" after hosts have been loadedremotes/origin/781-autorefresh_config
commit
5701f5c2a3
|
@ -87,12 +87,12 @@ const HostsTable = React.createClass({
|
||||||
const hostCount = sortedHosts.length;
|
const hostCount = sortedHosts.length;
|
||||||
|
|
||||||
let hostsTitle;
|
let hostsTitle;
|
||||||
if (hostCount === 1) {
|
if (hosts.length === 0) {
|
||||||
hostsTitle = `${hostCount} Host`;
|
|
||||||
} else if (hostCount > 1) {
|
|
||||||
hostsTitle = `${hostCount} Hosts`;
|
|
||||||
} else {
|
|
||||||
hostsTitle = `Loading Hosts...`;
|
hostsTitle = `Loading Hosts...`;
|
||||||
|
} else if (hostCount === 1) {
|
||||||
|
hostsTitle = `${hostCount} Host`;
|
||||||
|
} else {
|
||||||
|
hostsTitle = `${hostCount} Hosts`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue