From c972de233a43d788a121e9eff5b9e57816236186 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 21 Nov 2023 15:47:58 +0100 Subject: [PATCH] notification ui: add appropriate onlineHelp anchors This links the dialog windows to the correct help section (different target types, matchers). Signed-off-by: Lukas Wagner --- src/panel/GotifyEditPanel.js | 1 + src/panel/NotificationConfigView.js | 1 + src/panel/SendmailEditPanel.js | 1 + src/panel/SmtpEditPanel.js | 1 + src/window/NotificationMatcherEdit.js | 1 + 5 files changed, 5 insertions(+) diff --git a/src/panel/GotifyEditPanel.js b/src/panel/GotifyEditPanel.js index 7e6ecd8..0e8cac4 100644 --- a/src/panel/GotifyEditPanel.js +++ b/src/panel/GotifyEditPanel.js @@ -2,6 +2,7 @@ Ext.define('Proxmox.panel.GotifyEditPanel', { extend: 'Proxmox.panel.InputPanel', xtype: 'pmxGotifyEditPanel', mixins: ['Proxmox.Mixin.CBind'], + onlineHelp: 'notification_targets_gotify', type: 'gotify', diff --git a/src/panel/NotificationConfigView.js b/src/panel/NotificationConfigView.js index 4695da5..4d3ee46 100644 --- a/src/panel/NotificationConfigView.js +++ b/src/panel/NotificationConfigView.js @@ -2,6 +2,7 @@ Ext.define('Proxmox.panel.NotificationConfigView', { extend: 'Ext.panel.Panel', alias: 'widget.pmxNotificationConfigView', mixins: ['Proxmox.Mixin.CBind'], + onlineHelp: 'chapter_notifications', layout: { type: 'border', }, diff --git a/src/panel/SendmailEditPanel.js b/src/panel/SendmailEditPanel.js index b744787..5a154c1 100644 --- a/src/panel/SendmailEditPanel.js +++ b/src/panel/SendmailEditPanel.js @@ -4,6 +4,7 @@ Ext.define('Proxmox.panel.SendmailEditPanel', { mixins: ['Proxmox.Mixin.CBind'], type: 'sendmail', + onlineHelp: 'notification_targets_sendmail', mailValidator: function() { let mailto_user = this.down(`[name=mailto-user]`); diff --git a/src/panel/SmtpEditPanel.js b/src/panel/SmtpEditPanel.js index 218485d..8b258e0 100644 --- a/src/panel/SmtpEditPanel.js +++ b/src/panel/SmtpEditPanel.js @@ -2,6 +2,7 @@ Ext.define('Proxmox.panel.SmtpEditPanel', { extend: 'Proxmox.panel.InputPanel', xtype: 'pmxSmtpEditPanel', mixins: ['Proxmox.Mixin.CBind'], + onlineHelp: 'notification_targets_smtp', type: 'smtp', diff --git a/src/window/NotificationMatcherEdit.js b/src/window/NotificationMatcherEdit.js index ee08c16..9ee34fd 100644 --- a/src/window/NotificationMatcherEdit.js +++ b/src/window/NotificationMatcherEdit.js @@ -73,6 +73,7 @@ Ext.define('Proxmox.window.NotificationMatcherEdit', { extend: 'Proxmox.window.Edit', isAdd: true, + onlineHelp: 'notification_matchers', fieldDefaults: { labelWidth: 120,