Web: show notification when worker was removed

This commit is contained in:
Sybren A. Stüvel 2022-08-11 17:50:50 -07:00
parent b4194e32e9
commit ea82dbfead

View File

@ -71,6 +71,9 @@ export const useNotifs = defineStore('notifications', {
if (workerUpdate.previous_status && workerUpdate.previous_status != workerUpdate.status) { if (workerUpdate.previous_status && workerUpdate.previous_status != workerUpdate.status) {
msg += ` changed status ${workerUpdate.previous_status}${workerUpdate.status}`; msg += ` changed status ${workerUpdate.previous_status}${workerUpdate.status}`;
this.add(msg); this.add(msg);
} else if (workerUpdate.deleted_at) {
msg += " was removed from the system";
this.add(msg);
} }
}, },