mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 23:19:09 +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 TimesDelayed = (props) => {
|
||||||
const {
|
const { handleValidate, actionHandler, delay, timeStart, timeEnd, duration } =
|
||||||
handleValidate,
|
props;
|
||||||
actionHandler,
|
|
||||||
delay,
|
|
||||||
timeStart,
|
|
||||||
timeEnd,
|
|
||||||
duration,
|
|
||||||
} = props;
|
|
||||||
|
|
||||||
const scheduledStart = stringFromMillis(timeStart, false);
|
const scheduledStart = stringFromMillis(timeStart, false);
|
||||||
const scheduledEnd = stringFromMillis(timeEnd, false);
|
const scheduledEnd = stringFromMillis(timeEnd, false);
|
||||||
@@ -44,7 +38,7 @@ const TimesDelayed = (props) => {
|
|||||||
/>
|
/>
|
||||||
<span style={label}>Duration</span>
|
<span style={label}>Duration</span>
|
||||||
<EditableTimer
|
<EditableTimer
|
||||||
name='duration'
|
name='durationOverride'
|
||||||
validate={handleValidate}
|
validate={handleValidate}
|
||||||
actionHandler={actionHandler}
|
actionHandler={actionHandler}
|
||||||
time={duration}
|
time={duration}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ const event = {
|
|||||||
const delay = {
|
const delay = {
|
||||||
duration: 0,
|
duration: 0,
|
||||||
type: 'delay',
|
type: 'delay',
|
||||||
|
revision: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
const block = {
|
const block = {
|
||||||
|
|||||||
Reference in New Issue
Block a user