X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/5f77228e7c601fa2fb9154d54769fd6f08a463ce..de3b8d1fa96ec9a5d28b05dade868abf8132904b:/src/components/form-dialog/form-dialog.tsx diff --git a/src/components/form-dialog/form-dialog.tsx b/src/components/form-dialog/form-dialog.tsx index e95693df..6970a38a 100644 --- a/src/components/form-dialog/form-dialog.tsx +++ b/src/components/form-dialog/form-dialog.tsx @@ -16,22 +16,24 @@ const styles: StyleRulesCallback = theme => ({ }, lastButton: { marginLeft: theme.spacing.unit, - marginRight: "20px", + marginRight: "0", }, formContainer: { display: "flex", flexDirection: "column", - marginTop: "20px", + paddingBottom: "0", }, dialogTitle: { - paddingBottom: "0" + paddingTop: theme.spacing.unit, + paddingBottom: theme.spacing.unit, }, progressIndicator: { position: "absolute", minWidth: "20px", }, dialogActions: { - marginBottom: theme.spacing.unit * 3 + marginBottom: theme.spacing.unit, + marginRight: theme.spacing.unit * 3, } }); @@ -40,6 +42,7 @@ interface DialogProjectDataProps { dialogTitle: string; formFields: React.ComponentType & WithDialogProps>; submitLabel?: string; + enableWhenPristine?: boolean; } type DialogProjectProps = DialogProjectDataProps & WithDialogProps<{}> & InjectedFormProps & WithStyles; @@ -52,7 +55,7 @@ export const FormDialog = withStyles(styles)((props: DialogProjectProps) => disableEscapeKeyDown={props.submitting} fullWidth maxWidth='md'> -
+ {props.dialogTitle} @@ -61,6 +64,7 @@ export const FormDialog = withStyles(styles)((props: DialogProjectProps) =>