Commit 485f11dc authored by Alejandro De Maria Antolinos's avatar Alejandro De Maria Antolinos Committed by Marjolaine Bodin
Browse files

It fixes #514

parent a23f44cd
......@@ -13,7 +13,11 @@ import {
*/
class EventFooter extends React.Component {
render() {
const { cancelButtonLabel, isSaveButtonVisible } = this.props;
const {
cancelButtonLabel,
isSaveButtonVisible,
loading = false,
} = this.props;
return (
<div style={{ position: 'relative', height: 37 }}>
......@@ -37,6 +41,7 @@ class EventFooter extends React.Component {
<Button
className="btn btn-primary"
bsSize="small"
disabled={loading}
onClick={() => this.props.onSaveButtonClicked()}
>
{' '}
......
......@@ -262,6 +262,7 @@ function NewOrEditEventPanel(props) {
isSaveButtonEnabled={true}
onCancelButtonClicked={() => onCancelButtonClicked()}
onSaveButtonClicked={() => onSaveButtonClicked()}
loading={loading}
/>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment