[pbs-devel] [PATCH proxmox-backup v2 43/43] ui: util: override default mail author for sendmail/smtp targets

Lukas Wagner l.wagner at proxmox.com
Wed Apr 17 16:35:14 CEST 2024


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

diff --git a/www/Utils.js b/www/Utils.js
index ae8d8ed3..f5ffa704 100644
--- a/www/Utils.js
+++ b/www/Utils.js
@@ -458,6 +458,26 @@ Ext.define('PBS.Utils', {
 		sync: false,
 	    },
 	});
+
+	Proxmox.Schema.overrideEndpointTypes({
+	    sendmail: {
+		name: 'Sendmail',
+		    ipanel: 'pmxSendmailEditPanel',
+		    iconCls: 'fa-envelope-o',
+		    defaultMailAuthor: 'Proxmox Backup Server ($hostname)',
+	    },
+	    smtp: {
+		name: 'SMTP',
+		    ipanel: 'pmxSmtpEditPanel',
+		    iconCls: 'fa-envelope-o',
+		    defaultMailAuthor: 'Proxmox Backup Server ($hostname)',
+	    },
+	    gotify: {
+		name: 'Gotify',
+		    ipanel: 'pmxGotifyEditPanel',
+		    iconCls: 'fa-bell-o',
+	    },
+	});
     },
 
     // Convert an ArrayBuffer to a base64url encoded string.
-- 
2.39.2





More information about the pbs-devel mailing list