Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / views / favorite-panel / favorite-panel.tsx
index a74da7623912d04973ec093c1345fbd85bf71d9f..aa4f2c1a20a0637d1c3effbf839b6b1219e99974 100644 (file)
@@ -38,6 +38,7 @@ import { GroupClass, GroupResource } from 'models/group';
 import { getProperty } from 'store/properties/properties';
 import { PROJECT_PANEL_CURRENT_UUID } from 'store/project-panel/project-panel-action';
 import { CollectionResource } from 'models/collection';
+import { toggleOne } from 'store/multiselect/multiselect-actions';
 
 type CssRules = "toolbar" | "button" | "root";
 
@@ -72,7 +73,6 @@ export const favoritePanelColumns: DataColumns<string, GroupContentsResource> =
         name: FavoritePanelColumnNames.NAME,
         selected: true,
         configurable: true,
-        // sort: {direction: SortDirection.NONE, field: "name"},
         filters: createTree(),
         render: uuid => <ResourceName uuid={uuid} />
     },
@@ -108,7 +108,6 @@ export const favoritePanelColumns: DataColumns<string, GroupContentsResource> =
         name: FavoritePanelColumnNames.LAST_MODIFIED,
         selected: true,
         configurable: true,
-        // sort: {direction: SortDirection.DESC, field: "modifiedAt"},
         filters: createTree(),
         render: uuid => <ResourceLastModifiedDate uuid={uuid} />
     }
@@ -173,6 +172,7 @@ export const FavoritePanel = withStyles(styles)(
             }
 
             handleRowClick = (uuid: string) => {
+                this.props.dispatch<any>(toggleOne(uuid))
                 this.props.dispatch<any>(loadDetailsPanel(uuid));
             }