mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-10-11 04:38:31 -04:00
switch on the notification, if it is added in EditMonitor.vue
This commit is contained in:
parent
7a4432de1e
commit
573c7faddd
4 changed files with 21 additions and 5 deletions
|
@ -99,6 +99,8 @@ class Notification {
|
|||
if (notification.applyExisting) {
|
||||
await applyNotificationEveryMonitor(bean.id, userID);
|
||||
}
|
||||
|
||||
return bean;
|
||||
}
|
||||
|
||||
static async delete(notificationID, userID) {
|
||||
|
|
|
@ -527,12 +527,13 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString();
|
|||
try {
|
||||
checkLogin(socket)
|
||||
|
||||
await Notification.save(notification, notificationID, socket.userID)
|
||||
let notificationBean = await Notification.save(notification, notificationID, socket.userID)
|
||||
await sendNotificationList(socket)
|
||||
|
||||
callback({
|
||||
ok: true,
|
||||
msg: "Saved",
|
||||
id: notificationBean.id,
|
||||
});
|
||||
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue