mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 00:13:53 +00:00
bugfixes: delay
- mismatch of event definition caused duration not to apply when event was delayed - delays now have revision
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -13,6 +13,7 @@ const event = {
|
||||
const delay = {
|
||||
duration: 0,
|
||||
type: 'delay',
|
||||
revision: 0,
|
||||
};
|
||||
|
||||
const block = {
|
||||
|
||||
Reference in New Issue
Block a user