};
render() {
- const { items, classes, working, columns, is404 } = this.props;
+ const { items, classes, columns, is404 } = this.props;
const { isLoaded } = this.state;
if (columns[0].name === this.checkBoxColumn.name) columns.shift();
columns.unshift(this.checkBoxColumn);
return (
<DataTableDefaultView
icon={this.props.defaultViewIcon}
- messages={["Project not found"]}
+ messages={["Item not found"]}
/>
);
} else {
+ //if (isLoaded && !is404)
return (
<DataTableDefaultView
icon={this.props.defaultViewIcon}
}
const mapStateToProps = ({ progressIndicator, dataExplorer, router, multiselect, detailsPanel, properties}: RootState, { id }: Props) => {
+ const working = !!progressIndicator.some(p => p.id === id && p.working);
const dataExplorerState = getDataExplorer(dataExplorer, id);
const currentRoute = router.location ? router.location.pathname : "";
const currentRefresh = localStorage.getItem(LAST_REFRESH_TIMESTAMP) || "";
currentItemUuid,
isMSToolbarVisible,
checkedList: multiselect.checkedList,
+ working,
};
};
const mapStateToProps = (state: RootState) => {
const currentItemId = getProperty<string>(PROJECT_PANEL_CURRENT_UUID)(state.properties);
const project = getResource<GroupResource>(currentItemId || "")(state.resources);
- const working = !!state.progressIndicator.some(p => p.id === PROJECT_PANEL_ID && p.working);
const is404 = state.dataExplorer[PROJECT_PANEL_ID].isResponse404;
return {
- working,
currentItemId,
project,
is404,
contextMenuColumn={true}
defaultViewIcon={ProjectIcon}
defaultViewMessages={DEFAULT_VIEW_MESSAGES}
- working={this.props.working}
is404={this.props.is404}
/>
</div>