bugfixes: delay

- mismatch of event definition caused duration not to apply when event was delayed
- delays now have revision
This commit is contained in:
cv
2021-05-15 23:36:06 +02:00
parent 764bd52663
commit f38823e077
2 changed files with 4 additions and 9 deletions
@@ -8,14 +8,8 @@ const label = {
};
const TimesDelayed = (props) => {
const {
handleValidate,
actionHandler,
delay,
timeStart,
timeEnd,
duration,
} = props;
const { handleValidate, actionHandler, delay, timeStart, timeEnd, duration } =
props;
const scheduledStart = stringFromMillis(timeStart, false);
const scheduledEnd = stringFromMillis(timeEnd, false);
@@ -44,7 +38,7 @@ const TimesDelayed = (props) => {
/>
<span style={label}>Duration</span>
<EditableTimer
name='duration'
name='durationOverride'
validate={handleValidate}
actionHandler={actionHandler}
time={duration}
+1
View File
@@ -13,6 +13,7 @@ const event = {
const delay = {
duration: 0,
type: 'delay',
revision: 0,
};
const block = {