Skip to content

Commit

Permalink
Merge pull request espruino#3621 from bobrippling/feat/alarm-interfac…
Browse files Browse the repository at this point in the history
…e-enhance

sched interface: handle app-based alarms
  • Loading branch information
bobrippling authored Oct 30, 2024
2 parents ed3bf8c + e9969e6 commit 64c5ac9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/sched/interface.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
};
}
}
tdType.textContent = type;
tdType.textContent = type + (alarm.appid ? `\n(${alarm.appid})` : "");
if (!exists) {
const asterisk = document.createElement('sup');
asterisk.textContent = '*';
Expand Down Expand Up @@ -331,6 +331,10 @@
alarms.sort((a, b) => {
let x;

// move app specific alarms to the bottom
x = !!a.appid - !!b.appid;
if(x) return x;

x = !!b.date - !!a.date;
if(x) return x;

Expand Down

0 comments on commit 64c5ac9

Please sign in to comment.