X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3dda59aa1622c2d11f714d96c651a68e1ce8fb09..1df2b7a4d6f599828f9ba81b325382fe5947e281:/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 dd02813226..6970a38af8 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; @@ -48,11 +51,11 @@ export const FormDialog = withStyles(styles)((props: DialogProjectProps) => -
+ maxWidth='md'> + {props.dialogTitle} @@ -61,6 +64,7 @@ export const FormDialog = withStyles(styles)((props: DialogProjectProps) =>
); - -