[pve-devel] [PATCH v6 pve-manager 19/30] ui: add notification target configuration panel

Lukas Wagner l.wagner at proxmox.com
Thu Aug 3 14:17:08 CEST 2023


Embed the new notification target configuration panel, implemented in
proxmox-widget-toolkit.

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 www/manager6/dc/Config.js | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/www/manager6/dc/Config.js b/www/manager6/dc/Config.js
index aa025c8d..9ba7b301 100644
--- a/www/manager6/dc/Config.js
+++ b/www/manager6/dc/Config.js
@@ -329,6 +329,22 @@ Ext.define('PVE.dc.Config', {
 	    );
 	}
 
+	if (caps.mapping['Mapping.Audit'] ||
+	    caps.mapping['Mapping.Use'] ||
+	    caps.mapping['Mapping.Modify']) {
+	    me.items.push(
+		{
+		    xtype: 'pmxNotificationConfigView',
+		    title: gettext('Notification Targets'),
+		    onlineHelp: 'notification_targets',
+		    itemId: 'notification-targets',
+		    iconCls: 'fa fa-dot-circle-o',
+		    baseUrl: '/cluster/notifications',
+		    groups: ['notifications'],
+		},
+	    );
+	}
+
 	if (caps.dc['Sys.Audit']) {
 	    me.items.push({
 		xtype: 'pveDcSupport',
-- 
2.39.2






More information about the pve-devel mailing list