Add color coded indicator to notifications

This commit is contained in:
Johannes Zellner
2023-09-26 12:58:19 +02:00
parent b72a5e9c69
commit 8f87070b45
4 changed files with 40 additions and 3 deletions

View File

@@ -5,6 +5,24 @@
/* global EventSource */
/* global async */
// keep in sync with box/src/notfications.js
const NOTIFICATION_TYPES = {
ALERT_CLOUDRON_INSTALLED: 'cloudronInstalled',
ALERT_CLOUDRON_UPDATED: 'cloudronUpdated',
ALERT_CLOUDRON_UPDATE_FAILED: 'cloudronUpdateFailed',
ALERT_CERTIFICATE_RENEWAL_FAILED: 'certificateRenewalFailed',
ALERT_BACKUP_CONFIG: 'backupConfig',
ALERT_DISK_SPACE: 'diskSpace',
ALERT_MAIL_STATUS: 'mailStatus',
ALERT_REBOOT: 'reboot',
ALERT_BOX_UPDATE: 'boxUpdate',
ALERT_UPDATE_UBUNTU: 'ubuntuUpdate',
ALERT_MANUAL_APP_UPDATE: 'manualAppUpdate',
ALERT_APP_OOM: 'appOutOfMemory',
ALERT_APP_UPDATED: 'appUpdated',
ALERT_BACKUP_FAILED: 'backupFailed',
};
// keep in sync with box/src/apps.js
var ISTATES = {
PENDING_INSTALL: 'pending_install',