add ip domain checker
@@ -34,6 +34,7 @@ import { RenderHttpRouteDestinations } from "./destinations";
import routesGif from "images/routes.gif";
import { loadDomainDNSInfo } from "actions/domain";
import DomainStatus from "widgets/DomainStatus";
+import { isArray } from "util";
const mapStateToProps = (state: RootState) => {
const form = ROUTE_FORM_ID;
@@ -331,8 +332,16 @@ class RouteFormRaw extends React.PureComponent<Props, State> {
change,
isEdit,
hosts,
+ syncErrors,
} = this.props;
- const icons = hosts.map((host) => <DomainStatus domain={host} />);
+
+ const icons = hosts.map((host, index) => {
+ if (isArray(syncErrors.hosts) && syncErrors.hosts[index]) {
+ return undefined;
+ } else {
+ return <DomainStatus domain={host} />;
+ }
+ });
return (
<div className={classes.root}>
<Grid container spacing={2}>
