21364: changed elementPath to only display if am elment is selected Arvados-DCO-1...
[arvados.git] / services / workbench2 / src / components / data-explorer / data-explorer.tsx
index 13ad46286c0071ed0f77140313313f101f5e3110..9714a265a4b8a43955f78c237aa3c8ee6ac31a3e 100644 (file)
@@ -295,7 +295,7 @@ export const DataExplorer = withStyles(styles)(
                             <Toolbar className={classes.footer}>
                                 {elementPath && (
                                     <Grid container>
-                                        <span data-cy="element-path">{elementPath}</span>
+                                        <span data-cy="element-path">{elementPath.length > 2 ? elementPath : ''}</span>
                                     </Grid>
                                 )}
                                 <Grid
@@ -321,7 +321,7 @@ export const DataExplorer = withStyles(styles)(
                                             variant="contained"
                                             color="primary"  
                                             style={{width: '100%', margin: '10px'}}
-                                            disabled={ working || (page + 1) * rowsPerPage >= itemsAvailable || (itemsAvailable === 0 && page === 0)}
+                                            disabled={ working || (page + 1) * rowsPerPage >= itemsAvailable}
                                         >
                                             Load more
                                         </Button>