Merge branch 'dev' into staging
This commit is contained in:
commit
fb59d42446
@ -46,6 +46,10 @@
|
|||||||
min-width: 85vw;
|
min-width: 85vw;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.fullheight {
|
||||||
|
min-height: 75vh;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.backdrop {
|
.backdrop {
|
||||||
|
@ -17,10 +17,11 @@ type IProps = {
|
|||||||
secondButton?: IButtonProps;
|
secondButton?: IButtonProps;
|
||||||
fullwidth?: boolean;
|
fullwidth?: boolean;
|
||||||
fullscreen?: boolean;
|
fullscreen?: boolean;
|
||||||
|
fullheight?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Modal(props: IProps) {
|
export default function Modal(props: IProps) {
|
||||||
const { isOpen, onClose, children, className, title, firstButton, secondButton, fullwidth, fullscreen } = props;
|
const { isOpen, onClose, children, className, title, firstButton, secondButton, fullwidth, fullscreen, fullheight } = props;
|
||||||
|
|
||||||
if (!isOpen) return null;
|
if (!isOpen) return null;
|
||||||
return (
|
return (
|
||||||
@ -33,6 +34,7 @@ export default function Modal(props: IProps) {
|
|||||||
className,
|
className,
|
||||||
fullwidth && classes["fullwidth"],
|
fullwidth && classes["fullwidth"],
|
||||||
fullscreen && classes["fullscreen"],
|
fullscreen && classes["fullscreen"],
|
||||||
|
fullheight && classes["fullheight"],
|
||||||
)}>
|
)}>
|
||||||
<div className={classes["header"]}>
|
<div className={classes["header"]}>
|
||||||
{title && <Typography typo={ETypo.TITLE_H4}> {title}</Typography>}
|
{title && <Typography typo={ETypo.TITLE_H4}> {title}</Typography>}
|
||||||
|
@ -56,7 +56,6 @@ export default function ParameterDocuments(props: IProps) {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleClose = useCallback(() => {
|
const handleClose = useCallback(() => {
|
||||||
setFormattedOptions([]);
|
|
||||||
setSelectedDocuments([]);
|
setSelectedDocuments([]);
|
||||||
setAddOrEditDocument("edit");
|
setAddOrEditDocument("edit");
|
||||||
setVisibleDescription("");
|
setVisibleDescription("");
|
||||||
@ -83,6 +82,7 @@ export default function ParameterDocuments(props: IProps) {
|
|||||||
|
|
||||||
//await this.loadData();
|
//await this.loadData();
|
||||||
handleClose();
|
handleClose();
|
||||||
|
window.location.reload();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
@ -98,6 +98,7 @@ export default function ParameterDocuments(props: IProps) {
|
|||||||
|
|
||||||
//await this.loadData();
|
//await this.loadData();
|
||||||
handleClose();
|
handleClose();
|
||||||
|
window.location.reload();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
@ -122,7 +123,8 @@ export default function ParameterDocuments(props: IProps) {
|
|||||||
onClose={handleClose}
|
onClose={handleClose}
|
||||||
firstButton={{ children: "Annuler", onClick: handleClose }}
|
firstButton={{ children: "Annuler", onClick: handleClose }}
|
||||||
secondButton={{ children: "Ajouter", onClick: addDocument }}
|
secondButton={{ children: "Ajouter", onClick: addDocument }}
|
||||||
title={"Ajouter un document"}>
|
title={"Ajouter un document"}
|
||||||
|
fullheight>
|
||||||
<div className={classes["root"]}>
|
<div className={classes["root"]}>
|
||||||
<div className={classes["radiobox-container"]}>
|
<div className={classes["radiobox-container"]}>
|
||||||
<RadioBox
|
<RadioBox
|
||||||
|
Loading…
x
Reference in New Issue
Block a user