13494: Minor UI fixes.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 19 Oct 2020 15:01:46 +0000 (12:01 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Tue, 20 Oct 2020 21:00:05 +0000 (18:00 -0300)
* Removes useless 'Size' field on the collections detail pane.
* Adds version number field.
* Avoids event propagation on the collection icon so that when clicked it
  just opens the detail pane without collapsing the info pane.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/views/collection-panel/collection-panel.tsx

index f41e8967625624a0b801bd4e197c1de0a1cfadaf..d3566f36ff45f515344874a6f5d14b28b58c7e31 100644 (file)
@@ -261,9 +261,10 @@ export const CollectionPanel = withStyles(styles)(
                 this.props.dispatch<any>(deleteCollectionTag(key, value));
             }
 
-            openCollectionDetails = () => {
+            openCollectionDetails = (e: React.MouseEvent<HTMLElement>) => {
                 const { item } = this.props;
                 if (item) {
+                    e.stopPropagation();
                     this.props.dispatch(openDetailsPanel(item.uuid));
                 }
             }