components: EventEdit warning message

master
Tal Leibman 5 years ago committed by Tom Hacohen
parent 0657e79e45
commit bd98d833aa

@ -245,9 +245,7 @@ class EventEdit extends React.PureComponent<PropsType> {
}, },
}; };
if (this.props.item && this.props.item.isRecurring()) { const recurring = this.props.item && this.props.item.isRecurring();
console.log(1);
}
const differentTimezone = this.state.timezone && (this.state.timezone !== getCurrentTimezone()) && timezoneLoadFromName(this.state.timezone); const differentTimezone = this.state.timezone && (this.state.timezone !== getCurrentTimezone()) && timezoneLoadFromName(this.state.timezone);
@ -256,6 +254,13 @@ class EventEdit extends React.PureComponent<PropsType> {
<h2> <h2>
{this.props.item ? 'Edit Event' : 'New Event'} {this.props.item ? 'Edit Event' : 'New Event'}
</h2> </h2>
{recurring && (
<div>
<span style={{ color: 'red' }}>IMPORTANT: </span>
This is a recurring event, for now, only editing the whole series
(by editing the first instance) is supported.
</div>
)}
{this.state.error && ( {this.state.error && (
<div>ERROR! {this.state.error}</div> <div>ERROR! {this.state.error}</div>
)} )}

Loading…
Cancel
Save