mirror of https://github.com/espruino/BangleApps
Merge pull request #3621 from bobrippling/feat/alarm-interface-enhance
sched interface: handle app-based alarmspull/3637/head
commit
64c5ac95ec
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue