Merge pull request #3621 from bobrippling/feat/alarm-interface-enhance

sched interface: handle app-based alarms
pull/3637/head
Rob Pilling 2024-10-30 21:09:38 +00:00 committed by GitHub
commit 64c5ac95ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -173,7 +173,7 @@ function renderAlarm(alarm, exists) {
}; };
} }
} }
tdType.textContent = type; tdType.textContent = type + (alarm.appid ? `\n(${alarm.appid})` : "");
if (!exists) { if (!exists) {
const asterisk = document.createElement('sup'); const asterisk = document.createElement('sup');
asterisk.textContent = '*'; asterisk.textContent = '*';
@ -331,6 +331,10 @@ function getData() {
alarms.sort((a, b) => { alarms.sort((a, b) => {
let x; let x;
// move app specific alarms to the bottom
x = !!a.appid - !!b.appid;
if(x) return x;
x = !!b.date - !!a.date; x = !!b.date - !!a.date;
if(x) return x; if(x) return x;