signalk-race-control 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/app.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signalk-race-control",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "SignalK plugin and webapp for tracking elapsed and handicap-corrected (Time-on-Time) race time, with a per-boat editable TCF and boat names pulled from AIS when available.",
5
5
  "main": "index.js",
6
6
  "author": "Joachim Bakke <github@heiamoss.com>",
package/public/app.js CHANGED
@@ -2999,8 +2999,14 @@
2999
2999
  : tsToTimeInputValue(raceState.startTime);
3000
3000
  }
3001
3001
 
3002
+ if (document.activeElement !== scheduleInput) {
3003
+ scheduleInput.value = tsToDateTimeInputValue(raceState.scheduledStart);
3004
+ }
3002
3005
  scheduleInput.disabled = !!raceState.startTime;
3003
3006
  scheduleBtn.disabled = !!raceState.startTime;
3007
+ scheduleBtn.textContent = raceState.scheduledStart
3008
+ ? 'Scheduled: ' + new Date(raceState.scheduledStart).toLocaleString()
3009
+ : 'Schedule Start';
3004
3010
  cancelScheduleBtn.hidden = !raceState.scheduledStart || !!raceState.startTime;
3005
3011
 
3006
3012
  callOffInput.type = raceState.multiDay ? 'datetime-local' : 'time';