From bd98d833aac2c629ad9610219b73eae67f254d99 Mon Sep 17 00:00:00 2001 From: Tal Leibman Date: Sun, 12 Jan 2020 23:23:55 +0200 Subject: [PATCH] components: EventEdit warning message --- src/components/EventEdit.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/EventEdit.tsx b/src/components/EventEdit.tsx index 895ed86..b863aed 100644 --- a/src/components/EventEdit.tsx +++ b/src/components/EventEdit.tsx @@ -245,9 +245,7 @@ class EventEdit extends React.PureComponent { }, }; - if (this.props.item && this.props.item.isRecurring()) { - console.log(1); - } + const recurring = this.props.item && this.props.item.isRecurring(); const differentTimezone = this.state.timezone && (this.state.timezone !== getCurrentTimezone()) && timezoneLoadFromName(this.state.timezone); @@ -256,6 +254,13 @@ class EventEdit extends React.PureComponent {

{this.props.item ? 'Edit Event' : 'New Event'}

+ {recurring && ( +
+ IMPORTANT: + This is a recurring event, for now, only editing the whole series + (by editing the first instance) is supported. +
+ )} {this.state.error && (
ERROR! {this.state.error}
)}