1
0
Fork 0

Update settings.js

master
Giles Booth 2022-08-19 17:48:05 +01:00 committed by GitHub
parent 23f2a6dbdb
commit fddcf5f45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
E.showMenu({ E.showMenu({
"" : { "title" : "Seaside Watch" }, "" : { "title" : "Seaside Watch" },
"< Back" : () => back(), "< Back" : () => back(),
'High or low?': { 'Tide type': {
value: "high"|settings.nextTideType, // !! converts undefined to false value: "high"|settings.nextTideType, // !! converts undefined to false
format: v => v?"high":"low ", format: v => v?"high":"low ",
onchange: v => { onchange: v => {
@ -23,7 +23,7 @@
writeSettings(); writeSettings();
} }
}, },
'Hour?': { 'Hour': {
value: 0|settings.nextTideHour, // 0| converts undefined to 0 value: 0|settings.nextTideHour, // 0| converts undefined to 0
min: 0, max: 23, min: 0, max: 23,
onchange: v => { onchange: v => {
@ -31,7 +31,7 @@
writeSettings(); writeSettings();
} }
}, },
'Minutes?': { 'Minutes': {
value: 0|settings.nextTideMin, // 0| converts undefined to 0 value: 0|settings.nextTideMin, // 0| converts undefined to 0
min: 0, max: 59, min: 0, max: 59,
onchange: v => { onchange: v => {