From f46e8359c7ddf09192190a946958036450032812 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Wed, 23 Oct 2024 21:42:48 +0100 Subject: [PATCH 1/2] sched interface: display appid of an alarm --- apps/sched/interface.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sched/interface.html b/apps/sched/interface.html index 73ceff3c1a..185e9034fe 100644 --- a/apps/sched/interface.html +++ b/apps/sched/interface.html @@ -173,7 +173,7 @@ }; } } - tdType.textContent = type; + tdType.textContent = type + (alarm.appid ? `\n(${alarm.appid})` : ""); if (!exists) { const asterisk = document.createElement('sup'); asterisk.textContent = '*'; From e9969e6d85c17d73d013dfbeca94d3b227b24341 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Wed, 23 Oct 2024 21:42:58 +0100 Subject: [PATCH 2/2] sched interface: rank app-alarms to the bottom --- apps/sched/interface.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/sched/interface.html b/apps/sched/interface.html index 185e9034fe..fa41325746 100644 --- a/apps/sched/interface.html +++ b/apps/sched/interface.html @@ -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;