From df147ed0ffea3b8220560b2d1b4f104e80a47fc0 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Wed, 9 Jul 2025 10:14:31 +0200 Subject: [PATCH] ui: remove handling of obsolete notification-policy/target settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These were only used in the 'old' revamped notification stack which was briefly available on pvetest. With PVE 9 we can finally get completely rid of these. Signed-off-by: Lukas Wagner Reviewed-by: Michael Köppl Tested-by: Michael Köppl Link: https://lore.proxmox.com/20250709081432.91868-2-l.wagner@proxmox.com --- www/manager6/dc/Backup.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js index 3808aa25..5eb8b5fb 100644 --- a/www/manager6/dc/Backup.js +++ b/www/manager6/dc/Backup.js @@ -37,14 +37,6 @@ Ext.define('PVE.dc.BackupEdit', { delete values.node; } - // Get rid of new-old parameters for notification settings. - // These should only be set for those selected few who ran - // pve-manager from pvetest. - if (!isCreate) { - Proxmox.Utils.assemble_field_data(values, { delete: 'notification-policy' }); - Proxmox.Utils.assemble_field_data(values, { delete: 'notification-target' }); - } - let selMode = values.selMode; delete values.selMode; @@ -158,14 +150,6 @@ Ext.define('PVE.dc.BackupEdit', { let me = this; let viewModel = me.getViewModel(); - // Migrate 'new'-old notification-policy back to old-old mailnotification. - // Only should affect users who used pve-manager from pvetest. This was a remnant of - // notifications before the overhaul. - let policy = data['notification-policy']; - if (policy === 'always' || policy === 'failure') { - data.mailnotification = policy; - } - if (data.exclude) { data.vmid = data.exclude; data.selMode = 'exclude';