Show alerts skeleton even when no kapacitor

pull/3109/head
ebb-tide 2018-04-02 11:23:55 -07:00
parent 8802c82666
commit 5a3c902f58
2 changed files with 7 additions and 6 deletions

View File

@ -118,9 +118,9 @@ class AlertsApp extends Component {
renderSubComponents = () => {
const {source, isWidget, limit} = this.props
const {isAlertsMaxedOut, alerts} = this.state
const {isAlertsMaxedOut, alerts, hasKapacitor} = this.state
return this.state.hasKapacitor ? (
return hasKapacitor ? (
<AlertsTable
source={source}
alerts={this.state.alerts}

View File

@ -14,9 +14,6 @@ const KapacitorRules = ({
onDelete,
onChangeRuleStatus,
}) => {
if (!hasKapacitor) {
return <NoKapacitorError source={source} />
}
if (loading) {
return (
<div>
@ -28,7 +25,11 @@ const KapacitorRules = ({
</div>
<div className="panel-body">
<div className="generic-empty-state">
<p>Loading Rules...</p>
{hasKapacitor ? (
<p>Loading Rules...</p>
) : (
<NoKapacitorError source={source} />
)}
</div>
</div>
</div>