Admin messages use the same colours as the rest of ITFlow - red after archiving, removing, unlinking or cancelling something and green after restoring it or Undo - covering tags, categories, custom links, payment methods, roles, SLAs, ticket statuses, starter content, offices, closure days, backups, app logs, RMM clients, invites, queued emails and texts, and the company logo

This commit is contained in:
johnnyq
2026-11-20 17:59:26 -05:00
parent 478c8edcc8
commit c1bdc99c14
17 changed files with 21 additions and 21 deletions

View File

@@ -52,10 +52,10 @@ if (isset($_GET['delete_backup'])) {
// One still waiting has no file yet - taking it off the queue is all there is to it
if ($row['backup_status'] === 'Pending') {
logAudit("Backup", "Delete", ($session_name ?? 'Unknown User') . " took a queued " . backupTypeLabel($row['backup_type']) . " off the queue");
flashAlert(backupTypeLabel($row['backup_type']) . " taken off the queue.");
flashAlert(backupTypeLabel($row['backup_type']) . " taken off the queue.", 'error');
} else {
logAudit("Backup", "Delete", ($session_name ?? 'Unknown User') . " deleted backup " . escapeSql($row['backup_file_name']));
flashAlert($row['backup_status'] === 'Complete' ? "Backup deleted." : "Backup removed from the list.");
flashAlert($row['backup_status'] === 'Complete' ? "Backup deleted." : "Backup removed from the list.", 'error');
}
} else {
flashAlert("Backup not found.", 'error');