onRowDoubleClick: (item: any) => void;
extractKey?: (item: any) => React.Key;
working?: boolean;
- isNotFound?: boolean;
}
const mapStateToProps = ({ progressIndicator, dataExplorer, router, multiselect, detailsPanel, properties}: RootState, { id }: Props) => {
isMSToolbarVisible,
checkedList: multiselect.checkedList,
working,
+ isNotFound: dataExplorerState.isNotFound,
};
};
userUuid: string;
dataExplorerItems: any;
working: boolean;
- isNotFound: boolean;
}
type ProjectPanelProps = ProjectPanelDataProps & DispatchProp & WithStyles<CssRules> & RouteComponentProps<{ id: string }>;
const mapStateToProps = (state: RootState) => {
const currentItemId = getProperty<string>(PROJECT_PANEL_CURRENT_UUID)(state.properties);
const project = getResource<GroupResource>(currentItemId || "")(state.resources);
- const isNotFound = state.dataExplorer[PROJECT_PANEL_ID] ? state.dataExplorer[PROJECT_PANEL_ID].isNotFound : false;
return {
currentItemId,
project,
- isNotFound,
resources: state.resources,
userUuid: state.auth.user!.uuid,
};
contextMenuColumn={true}
defaultViewIcon={ProjectIcon}
defaultViewMessages={DEFAULT_VIEW_MESSAGES}
- isNotFound={this.props.isNotFound}
/>
</div>
}
contextMenuColumn={false}
elementPath={`/ ${itemPath.reverse().join(' / ')}`}
hideSearchInput
- isNotFound={props.isNotFound}
title={
<div>
{loggedIn.length === 1 ?
remoteHostsConfig: { [key: string]: Config };
localCluster: string;
numberOfItems: number;
- isNotFound: boolean;
}
export interface SearchResultsPanelActionProps {
const mapStateToProps = (rootState: RootState) => {
const { dataExplorer } = rootState;
const numberOfItems = dataExplorer[SEARCH_RESULTS_PANEL_ID].items.length;
- const isNotFound = dataExplorer[SEARCH_RESULTS_PANEL_ID].isNotFound;
return {
user: rootState.auth.user,
sessions: rootState.auth.sessions,
remoteHostsConfig: rootState.auth.remoteHostsConfig,
localCluster: rootState.auth.localCluster,
numberOfItems,
- isNotFound,
};
};