Merge pull request #959 from influxdata/fix/855-loading-hosts

#855 - don't show "loading hosts" after hosts have been loaded
remotes/origin/781-autorefresh_config
Andrew Watkins 2017-03-02 13:08:22 -08:00 committed by GitHub
commit 5701f5c2a3
1 changed files with 5 additions and 5 deletions

View File

@ -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 (