From 716f55edbae8b8a16e2479e1f0e75619567df051 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Tue, 9 Apr 2024 10:47:55 -0400 Subject: [PATCH] 21313: moved save button to bottom of share dialog Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- .../sharing-dialog-component.tsx | 24 +++++++++++++++---- .../sharing-invitation-form-component.tsx | 19 +-------------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/services/workbench2/src/views-components/sharing-dialog/sharing-dialog-component.tsx b/services/workbench2/src/views-components/sharing-dialog/sharing-dialog-component.tsx index 5d646c4658..a4800521de 100644 --- a/services/workbench2/src/views-components/sharing-dialog/sharing-dialog-component.tsx +++ b/services/workbench2/src/views-components/sharing-dialog/sharing-dialog-component.tsx @@ -89,6 +89,7 @@ export default (props: SharingDialogComponentProps) => { className="sharing-dialog" fullWidth maxWidth='sm' + disableBackdropClick={saveEnabled} > Sharing settings @@ -178,13 +179,28 @@ export default (props: SharingDialogComponentProps) => { } + diff --git a/services/workbench2/src/views-components/sharing-dialog/sharing-invitation-form-component.tsx b/services/workbench2/src/views-components/sharing-dialog/sharing-invitation-form-component.tsx index 7e1bf3659e..ca1a83d9c0 100644 --- a/services/workbench2/src/views-components/sharing-dialog/sharing-invitation-form-component.tsx +++ b/services/workbench2/src/views-components/sharing-dialog/sharing-invitation-form-component.tsx @@ -48,30 +48,13 @@ const SharingInvitationFormComponent = (props: { onSave: () => void, saveEnabled export default SharingInvitationFormComponent; const StyledSharingInvitationFormComponent = withStyles(styles)( - ({ onSave, saveEnabled, classes }: { onSave: () => void, saveEnabled: boolean } & WithStyles) => + ({ classes }: { onSave: () => void, saveEnabled: boolean } & WithStyles) => - {saveEnabled && - - You must click 🞤 to add a participant. - } - - - - - ); -- 2.30.2