mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-23 15:22:34 +02:00
change Maintenance notification text.
This commit is contained in:
parent
ab06bf7a52
commit
9cbbed4bbe
1 changed files with 2 additions and 1 deletions
|
@ -1270,6 +1270,7 @@ class Monitor extends BeanModel {
|
||||||
(previousBeatStatus === DOWN && currentBeatStatus === MAINTENANCE) ||
|
(previousBeatStatus === DOWN && currentBeatStatus === MAINTENANCE) ||
|
||||||
(previousBeatStatus === UP && currentBeatStatus === DOWN) ||
|
(previousBeatStatus === UP && currentBeatStatus === DOWN) ||
|
||||||
(previousBeatStatus === DOWN && currentBeatStatus === UP) ||
|
(previousBeatStatus === DOWN && currentBeatStatus === UP) ||
|
||||||
|
(previousBeatStatus === PENDING && currentBeatStatus === MAINTENANCE) ||
|
||||||
(previousBeatStatus === PENDING && currentBeatStatus === DOWN);
|
(previousBeatStatus === PENDING && currentBeatStatus === DOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1290,7 +1291,7 @@ class Monitor extends BeanModel {
|
||||||
} else if (bean.status === DOWN) {
|
} else if (bean.status === DOWN) {
|
||||||
text = "🔴 Down";
|
text = "🔴 Down";
|
||||||
} else if (bean.status === MAINTENANCE) {
|
} else if (bean.status === MAINTENANCE) {
|
||||||
text = "🔵 Maintenance";
|
text = "Under Maintenance";
|
||||||
}
|
}
|
||||||
|
|
||||||
let msg = `[${monitor.name}] [${text}] ${bean.msg}`;
|
let msg = `[${monitor.name}] [${text}] ${bean.msg}`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue