time_picker: Reduce increment of minutes to one.

After some discussions in CZO, it was decided that we should reduce the
increment of minutes to one because the up/down arrow isn't very helpful
at all. Most of the time, users would manual type their desired time and
micro adjust with the arrow keys if needed.

This change also solves the issue where the time picker only counts
multiples of 5s as valid time as it was tied to the increment of minutes.
This commit is contained in:
Joelute 2023-04-13 22:55:27 -04:00 committed by Tim Abbott
parent d7d3126f80
commit 5d69a54849
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ export function show_flatpickr(element, callback, default_timestamp, options = {
formatDate: (date) => formatISO(date),
disableMobile: true,
time_24hr: user_settings.twenty_four_hour_time,
minuteIncrement: 1,
onKeyDown(selectedDates, dateStr, instance, event) {
// See also the keydown handler below.
//