mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
[editor] [#19] Validate durations when checking for invalid rules
fixes #19 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8b8c7601f1
commit
4579fee51a
1 changed files with 5 additions and 0 deletions
|
@ -1019,6 +1019,11 @@ export default {
|
||||||
this.validateReason = `${action.type} -> ${field.key} -> opt`
|
this.validateReason = `${action.type} -> ${field.key} -> opt`
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (field.type === 'duration' && !this.validateDuration(action.attributes[field.key], field.optional)) {
|
||||||
|
this.validateReason = `${action.type} -> ${field.key} -> duration`
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue