Editing pipeline schedules Cron field makes the radio buttons switch too often
Say you have 0 1 * * *
as the everyday value. We have a small hack that's needed that adds a space to the input when you click on custom. It then it becomes 0 1 * * *
and if you erase the space, then 0 1 * * *
is the everyday value, so it re-selects everyday radio. You can keep erasing and it will go back to custom, but it's a bit annoying to see and use.
This is caused because we have each radio field in interval_pattern_input
bound to a different value that drives the v-model
, but the custom field doesn't set any different value. So, we add an extra space to the value to trigger the change. Unfortunately, when we remove that space, then it becomes the preset value again.
Solution Find an alternative to trigger v-model without adding a space