From ea82dbfeade3c9d5496c4afd34a27b916e4adcb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 11 Aug 2022 17:50:50 -0700 Subject: [PATCH] Web: show notification when worker was removed --- web/app/src/stores/notifications.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/app/src/stores/notifications.js b/web/app/src/stores/notifications.js index e647e841..765c81ed 100644 --- a/web/app/src/stores/notifications.js +++ b/web/app/src/stores/notifications.js @@ -71,6 +71,9 @@ export const useNotifs = defineStore('notifications', { if (workerUpdate.previous_status && workerUpdate.previous_status != workerUpdate.status) { msg += ` changed status ${workerUpdate.previous_status} ➜ ${workerUpdate.status}`; this.add(msg); + } else if (workerUpdate.deleted_at) { + msg += " was removed from the system"; + this.add(msg); } },