change Maintenance notification text.

This commit is contained in:
Riccardo Crippa 2025-05-03 11:53:14 +02:00
parent ab06bf7a52
commit 9cbbed4bbe

View file

@ -1270,6 +1270,7 @@ class Monitor extends BeanModel {
(previousBeatStatus === DOWN && currentBeatStatus === MAINTENANCE) ||
(previousBeatStatus === UP && currentBeatStatus === DOWN) ||
(previousBeatStatus === DOWN && currentBeatStatus === UP) ||
(previousBeatStatus === PENDING && currentBeatStatus === MAINTENANCE) ||
(previousBeatStatus === PENDING && currentBeatStatus === DOWN);
}
@ -1290,7 +1291,7 @@ class Monitor extends BeanModel {
} else if (bean.status === DOWN) {
text = "🔴 Down";
} else if (bean.status === MAINTENANCE) {
text = "🔵 Maintenance";
text = "Under Maintenance";
}
let msg = `[${monitor.name}] [${text}] ${bean.msg}`;