The 'Notifications' panel in Datacenter view now features a new entry 'System mail', allowing the user to configure target and policy for mails sent to the local root user.
Signed-off-by: Lukas Wagner <l.wag...@proxmox.com> --- www/manager6/dc/NotificationEvents.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/www/manager6/dc/NotificationEvents.js b/www/manager6/dc/NotificationEvents.js index 18816290..40e9a65f 100644 --- a/www/manager6/dc/NotificationEvents.js +++ b/www/manager6/dc/NotificationEvents.js @@ -240,6 +240,33 @@ Ext.define('PVE.dc.NotificationEvents', { ], }); + me.addInputPanelRow('system-mail', 'notify', gettext('System Mail'), { + renderer: (value, metaData, record, rowIndex, colIndex, store) => + render_value(store, 'target-system-mail', 'system-mail', gettext('Always')), + url: "/api2/extjs/cluster/options", + items: [ + { + xtype: 'pveNotificationEventsPolicySelector', + name: 'system-mail', + fieldLabel: gettext('Notify'), + comboItems: [ + ['__default__', `${Proxmox.Utils.defaultText} (${gettext('Always')})`], + ['always', gettext('Always')], + ['never', gettext('Never')], + ], + warningRef: 'warning', + warnIfValIs: 'never', + }, + { + xtype: 'pveNotificationEventsTargetSelector', + name: 'target-system-mail', + }, + { + xtype: 'pveNotificationEventDisabledWarning', + reference: 'warning', + }, + ], + }); // Hack: Also load the notify property to make it accessible // for our render functions. me.rows.notify = { -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel