projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 15067-tag-editing-by-ids
[arvados-workbench2.git]
/
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 150dc4b66519da12c402f851934e4df36876b7fb..e95693df188309706edf3accbd09809faf760a98 100644
(file)
--- a/
src/components/form-dialog/form-dialog.tsx
+++ b/
src/components/form-dialog/form-dialog.tsx
@@
-31,25
+31,27
@@
const styles: StyleRulesCallback<CssRules> = theme => ({
minWidth: "20px",
},
dialogActions: {
minWidth: "20px",
},
dialogActions: {
- marginBottom:
"24px"
+ marginBottom:
theme.spacing.unit * 3
}
});
}
});
-interface DialogProjectProps {
+interface DialogProject
Data
Props {
cancelLabel?: string;
dialogTitle: string;
formFields: React.ComponentType<InjectedFormProps<any> & WithDialogProps<any>>;
submitLabel?: string;
}
cancelLabel?: string;
dialogTitle: string;
formFields: React.ComponentType<InjectedFormProps<any> & WithDialogProps<any>>;
submitLabel?: string;
}
-export const FormDialog = withStyles(styles)((props: DialogProjectProps & WithDialogProps<{}> & InjectedFormProps<any> & WithStyles<CssRules>) =>
+type DialogProjectProps = DialogProjectDataProps & WithDialogProps<{}> & InjectedFormProps<any> & WithStyles<CssRules>;
+
+export const FormDialog = withStyles(styles)((props: DialogProjectProps) =>
<Dialog
open={props.open}
onClose={props.closeDialog}
<Dialog
open={props.open}
onClose={props.closeDialog}
- disableBackdropClick
={props.submitting}
+ disableBackdropClick
disableEscapeKeyDown={props.submitting}
fullWidth
disableEscapeKeyDown={props.submitting}
fullWidth
- maxWidth='
sm
'>
+ maxWidth='
md
'>
<form>
<DialogTitle className={props.classes.dialogTitle}>
{props.dialogTitle}
<form>
<DialogTitle className={props.classes.dialogTitle}>
{props.dialogTitle}
@@
-66,6
+68,7
@@
export const FormDialog = withStyles(styles)((props: DialogProjectProps & WithDi
{props.cancelLabel || 'Cancel'}
</Button>
<Button
{props.cancelLabel || 'Cancel'}
</Button>
<Button
+ type="submit"
onClick={props.handleSubmit}
className={props.classes.lastButton}
color="primary"
onClick={props.handleSubmit}
className={props.classes.lastButton}
color="primary"