[ARVADOS-WORKBENCH2] updated: 1.3.0-104-g78e1b6a

Git user git at public.curoverse.com
Fri Dec 14 06:34:08 EST 2018


Summary of changes:
 src/views/group-details-panel/group-details-panel.tsx | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

       via  78e1b6a903071209acc47ba9272ce87a6561e67e (commit)
      from  b1b507febf56cb0622d3599ec68f276d9e0ce3d5 (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 78e1b6a903071209acc47ba9272ce87a6561e67e
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Fri Dec 14 12:32:56 2018 +0100

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

diff --git a/src/views/group-details-panel/group-details-panel.tsx b/src/views/group-details-panel/group-details-panel.tsx
index 940f9d0..749fd90 100644
--- a/src/views/group-details-panel/group-details-panel.tsx
+++ b/src/views/group-details-panel/group-details-panel.tsx
@@ -16,6 +16,8 @@ import { openContextMenu } from '~/store/context-menu/context-menu-actions';
 import { ResourcesState, getResource } from '~/store/resources/resources';
 import { ContextMenuKind } from '~/views-components/context-menu/context-menu';
 import { PermissionResource } from '~/models/permission';
+import { Grid, Button } from '@material-ui/core';
+import { AddIcon } from '~/components/icon/icon';
 
 export enum GroupDetailsPanelColumnNames {
     FIRST_NAME = "First name",
@@ -73,8 +75,9 @@ const mapDispatchToProps = {
     onContextMenu: openContextMenu,
 };
 
-export interface GroupDetailsPanelProps { 
+export interface GroupDetailsPanelProps {
     onContextMenu: (event: React.MouseEvent<HTMLElement>, item: any) => void;
+    onAddUser: () => void;
     resources: ResourcesState;
 }
 
@@ -91,7 +94,17 @@ export const GroupDetailsPanel = connect(
                     onRowDoubleClick={noop}
                     onContextMenu={this.handleContextMenu}
                     contextMenuColumn={true}
-                    hideColumnSelector />
+                    hideColumnSelector
+                    actions={
+                        <Grid container justify='flex-end'>
+                            <Button
+                                variant="contained"
+                                color="primary"
+                                onClick={this.props.onAddUser}>
+                                <AddIcon /> Add user
+                        </Button>
+                        </Grid>
+                    } />
             );
         }
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list