- {this.renderCard({
- href: UrlBaser.base('/status'),
+ {this.renderModalCard({
+ onClick: () => this.setState({ showStatusDialog: true }),
icon: IconNames.GRAPH,
title: 'Status',
loading: state.versionLoading,
@@ -470,7 +519,7 @@ GROUP BY 1`,
{Boolean(state.peonCount) &&
{pluralIfNeeded(state.peonCount, 'peon')}
}
>
),
- error: state.serverCountError,
+ error: state.serverCountError ? state.serverCountError : undefined,
})}
{this.renderCard({
href: '#lookups',
@@ -488,6 +537,7 @@ GROUP BY 1`,
),
error: !state.lookupsUninitialized ? state.lookupsCountError : undefined,
})}
+ {!state.versionLoading && this.renderStatusDialog()}
);
}