import { SEARCH_RESULTS_PANEL_ID } from '~/store/search-results-panel/search-results-panel-actions';
import { DataExplorer } from '~/views-components/data-explorer/data-explorer';
import {
- ProcessStatus, ResourceCluster,
+ ResourceCluster,
ResourceFileSize,
ResourceLastModifiedDate,
ResourceName,
ResourceOwner,
+ ResourceStatus,
ResourceType
} from '~/views-components/data-explorer/renderers';
import { createTree } from '~/models/tree';
selected: true,
configurable: true,
filters: createTree(),
- render: uuid => <ProcessStatus uuid={uuid} />
+ render: uuid => <ResourceStatus uuid={uuid} />
},
{
name: SearchResultsPanelColumnNames.TYPE,
title={
<div>
{loggedIn.length === 1 ?
- <span>Searching local cluster <ResourceCluster uuid={props.localCluster + "-"} /></span>
+ <span>Searching local cluster <ResourceCluster uuid={props.localCluster} /></span>
: <span>Searching clusters: {loggedIn.map((ss) => <span key={ss.clusterId}>
- <a href={props.remoteHostsConfig[ss.clusterId].workbench2Url} style={{ textDecoration: 'none' }}> <ResourceCluster uuid={ss.clusterId + "-"} /></a></span>)}</span>}
+ <a href={props.remoteHostsConfig[ss.clusterId] && props.remoteHostsConfig[ss.clusterId].workbench2Url} style={{ textDecoration: 'none' }}> <ResourceCluster uuid={ss.clusterId} /></a>
+ </span>)}</span>}
{loggedIn.length === 1 && props.localCluster !== homeCluster ?
<span>To search multiple clusters, <a href={props.remoteHostsConfig[homeCluster] && props.remoteHostsConfig[homeCluster].workbench2Url}> start from your home Workbench.</a></span>
: <span style={{ marginLeft: "2em" }}>Use <Link to={Routes.SITE_MANAGER} >Site Manager</Link> to manage which clusters will be searched.</span>}