[pmg-devel] [PATCH pmg-gui v3 2/2] mail-proxy-relaying: add help to Default Relay

Maximiliano Sandoval m.sandoval at proxmox.com
Thu Sep 14 15:18:13 CEST 2023


Add link to [1].

[1] https://pmg.proxmox.com/pmg-docs/chapter-pmgconfig.html#pmgconfig_mailproxy_relaying

Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
Differences from v2:
  - Add the link to all buttons in this panel.

 js/MailProxyRelaying.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/js/MailProxyRelaying.js b/js/MailProxyRelaying.js
index 411c9b4..8b91aef 100644
--- a/js/MailProxyRelaying.js
+++ b/js/MailProxyRelaying.js
@@ -10,6 +10,7 @@ Ext.define('PMG.MailProxyRelaying', {
 	me.add_text_row('relay', gettext('Default Relay'), {
 	    deleteEmpty: true,
 	    defaultValue: Proxmox.Utils.noneText,
+	    onlineHelp: 'pmgconfig_mailproxy_relaying',
 	});
 
 	me.add_integer_row('relayport', gettext('Relay Port'), {
@@ -17,6 +18,7 @@ Ext.define('PMG.MailProxyRelaying', {
 	    deleteEmpty: true,
 	    minValue: 1,
 	    maxValue: 65535,
+	    onlineHelp: 'pmgconfig_mailproxy_relaying',
 	});
 
 	me.add_combobox_row('relayprotocol', gettext('Relay Protocol'), {
@@ -24,10 +26,13 @@ Ext.define('PMG.MailProxyRelaying', {
 	    comboItems: [
 	    ['smtp', 'SMTP'],
 	    ['lmtp', 'LMTP']],
+	    onlineHelp: 'pmgconfig_mailproxy_relaying',
 	});
 
 
-	me.add_boolean_row('relaynomx', gettext('Disable MX lookup (SMTP)'));
+	me.add_boolean_row('relaynomx', gettext('Disable MX lookup (SMTP)'), {
+	    onlineHelp: 'pmgconfig_mailproxy_relaying',
+	});
 
 	me.rows.smarthost = {
 	    required: true,
@@ -79,6 +84,7 @@ Ext.define('PMG.MailProxyRelaying', {
 		    },
 		],
 	    },
+	    onlineHelp: 'pmgconfig_mailproxy_relaying',
 	};
 
 	me.rows.smarthostport = { visible: false };
-- 
2.39.2





More information about the pmg-devel mailing list