[ARVADOS-WORKBENCH2] updated: 1.3.0-83-gb2687de

Git user git at public.curoverse.com
Mon Dec 10 17:59:28 EST 2018


Summary of changes:
 src/views/groups-panel/groups-panel.tsx | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

       via  b2687ded960c6fb9e006bbceb5f93aa685aa70d5 (commit)
      from  ff2d7aa039e4d7a4ab6e77b778f161d6ab45dd2e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit b2687ded960c6fb9e006bbceb5f93aa685aa70d5
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Mon Dec 10 23:59:08 2018 +0100

    Add new group button
    
    Feature #14505
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/views/groups-panel/groups-panel.tsx b/src/views/groups-panel/groups-panel.tsx
index ed865d9..ea911aa 100644
--- a/src/views/groups-panel/groups-panel.tsx
+++ b/src/views/groups-panel/groups-panel.tsx
@@ -6,7 +6,7 @@ import * as React from 'react';
 import withStyles from "@material-ui/core/styles/withStyles";
 import { DispatchProp, connect } from 'react-redux';
 import { RouteComponentProps } from 'react-router';
-import { StyleRulesCallback, WithStyles, Typography } from "@material-ui/core";
+import { StyleRulesCallback, WithStyles, Typography, Grid, Button } from "@material-ui/core";
 
 import { DataExplorer } from "~/views-components/data-explorer/data-explorer";
 import { DataColumns } from '~/components/data-table/data-table';
@@ -16,7 +16,7 @@ import { ContainerRequestState } from '~/models/container-request';
 import { SortDirection } from '~/components/data-table/data-column';
 import { ResourceKind, Resource } from '~/models/resource';
 import { ResourceFileSize, ResourceLastModifiedDate, ProcessStatus, ResourceType, ResourceOwner } from '~/views-components/data-explorer/renderers';
-import { ProjectIcon } from '~/components/icon/icon';
+import { ProjectIcon, AddIcon } from '~/components/icon/icon';
 import { ResourceName } from '~/views-components/data-explorer/renderers';
 import { ResourcesState, getResource } from '~/store/resources/resources';
 import { loadDetailsPanel } from '~/store/details-panel/details-panel-action';
@@ -64,7 +64,11 @@ export const groupsPanelColumns: DataColumns<string> = [
     },
 ];
 
-export class GroupsPanel extends React.Component {
+export interface GroupsPanelProps {
+    onNewGroup: () => void;
+}
+
+export class GroupsPanel extends React.Component<GroupsPanelProps> {
 
     render() {
         return (
@@ -73,7 +77,18 @@ export class GroupsPanel extends React.Component {
                 onRowClick={noop}
                 onRowDoubleClick={noop}
                 onContextMenu={noop}
-                contextMenuColumn={true} />
+                contextMenuColumn={true}
+                hideColumnSelector
+                actions={
+                    <Grid container justify='flex-end'>
+                        <Button
+                            variant="contained"
+                            color="primary"
+                            onClick={this.props.onNewGroup}>
+                            <AddIcon /> New group
+                        </Button>
+                    </Grid>
+                } />
         );
     }
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list