]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: add notification target configuration panel
authorLukas Wagner <l.wagner@proxmox.com>
Thu, 3 Aug 2023 12:17:08 +0000 (14:17 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 16 Aug 2023 09:11:18 +0000 (11:11 +0200)
Embed the new notification target configuration panel, implemented in
proxmox-widget-toolkit.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
www/manager6/dc/Config.js

index aa025c8db67c74000b9e4b5a819253c914caa41c..9ba7b301fb486c4dd8b54a6ba1bcefd3b40bcbde 100644 (file)
@@ -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',