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;
|
||||
|
||||
let hostsTitle;
|
||||
if (hostCount === 1) {
|
||||
hostsTitle = `${hostCount} Host`;
|
||||
} else if (hostCount > 1) {
|
||||
hostsTitle = `${hostCount} Hosts`;
|
||||
} else {
|
||||
if (hosts.length === 0) {
|
||||
hostsTitle = `Loading Hosts...`;
|
||||
} else if (hostCount === 1) {
|
||||
hostsTitle = `${hostCount} Host`;
|
||||
} else {
|
||||
hostsTitle = `${hostCount} Hosts`;
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue