From 51e077acbdadd9de4e171eb8bfde4253de195438 Mon Sep 17 00:00:00 2001 From: frigis1 <63980066+frigis1@users.noreply.github.com> Date: Sat, 9 Apr 2022 12:32:36 -0700 Subject: [PATCH] Update app.js --- apps/noteify/app.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/noteify/app.js b/apps/noteify/app.js index 2f6c2cca7..1d9be8ea5 100644 --- a/apps/noteify/app.js +++ b/apps/noteify/app.js @@ -132,11 +132,14 @@ function showAlarmMenu() { 'New Timer': ()=>editTimer(-1) }; alarms.forEach((alarm,idx)=>{ - var txt; // a leading space is currently required (JS error in Espruino 2v12) - if (alarm.timer) - txt = "Timer"+" "+formatTime(alarm.timer); - else - txt = "Alarm"+" "+formatTime(alarm.t); + var type,txt; // a leading space is currently required (JS error in Espruino 2v12) + if (alarm.timer) { + type = /*LANG*/"Timer"; + txt = " "+formatTime(alarm.timer); + } else { + type = /*LANG*/"Alarm"; + txt = " "+formatTime(alarm.t); + } if (alarm.rp) txt += "\0"+atob("FBaBAAABgAAcAAHn//////wAHsABzAAYwAAMAADAAAAAAwAAMAADGAAzgAN4AD//////54AAOAABgAA="); // rename duplicate alarms if (menu[type+txt]) {