message: frontend: Fixes details section for endpoints
diff: @@ -24,7 +24,18 @@ spec:
  const {Edit, Delete} = Cog.factory;
  const menuActions = [Edit, Delete];
  -const EndpointRow = ({endpoint}) => <div>
  +const EndpointRow = ({endpoint}) => {
  + let detail = <span className="text-muted">--</span>;
  +
  + if (_.has(endpoint, 'scheme')) {
  + detail = <span><span className="text-muted">scheme:</span>{endpoint.scheme}</span>;
  + } else if (_.has(endpoint, 'honorLabels')) {
  + detail = <span><span className="text-muted">honorLabels:</span>{endpoint.honorLabels}</span>;
  + } else if (_.has(endpoint, 'targetPort')) {
  + detail = <span><span className="text-muted">targetPort:</span>{endpoint.targetPort}</span>;
  + }
  +
  + return <div>
  <div className="row co-ip-header">
  <div className="col-xs-6">Port</div>
  <div className="col-xs-2">Interval</div>
  @@ -40,14 +51,13 @@ const EndpointRow = ({endpoint}) => <div>
  <p>{endpoint.interval || '--'}</p>
  </div>
  <div className="col-xs-4">
  - {_.has(endpoint, 'scheme') && <span><span className="text-muted">scheme:</span>{endpoint.scheme}</span>}
  - {_.has(endpoint, 'targetPort') && <span><span className="text-muted">targetPort:</span>{endpoint.targetPort}</span>}
  - {_.has(endpoint, 'honorLabels') && <span><span className="text-muted">honorLabels:</span>{endpoint.honorLabels}</span>}
  + {detail}
  </div>
  </div>
  </div>
  </div>
  </div>;
  +};
  const Details = (sm) => {
  const {metadata, spec} = sm;
  