[pbs-devel] [PATCH proxmox-backup v4 42/43] ui: util: override default mail author for sendmail/smtp targets
Lukas Wagner
l.wagner at proxmox.com
Mon Apr 22 14:38:40 CEST 2024
Otherwise, 'Proxmox VE' is shown as the default author in the UI.
Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
www/Utils.js | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/www/Utils.js b/www/Utils.js
index 69bc2bfd..37c9e16a 100644
--- a/www/Utils.js
+++ b/www/Utils.js
@@ -455,6 +455,28 @@ Ext.define('PBS.Utils', {
sync: false,
},
});
+
+ // TODO: use `overrideEndpointTypes` later - not done right now to avoid
+ // breakage if widget-toolkit is not updated yet.
+ Proxmox.Schema.notificationEndpointTypes = {
+ 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