[pve-devel] [PATCH manager] fix #306: add email address field to backup now window

Dominik Csapak d.csapak at proxmox.com
Fri Feb 17 15:30:23 CET 2017


to send the backup log when clicking the backup now button

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/window/Backup.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/www/manager6/window/Backup.js b/www/manager6/window/Backup.js
index 2a019ca..7378c0d 100644
--- a/www/manager6/window/Backup.js
+++ b/www/manager6/window/Backup.js
@@ -47,6 +47,12 @@ Ext.define('PVE.window.Backup', {
 		    name: 'compress',
 		    value: 'lzo',
 		    fieldLabel: gettext('Compression')
+		},
+		{
+		    xtype: 'textfield',
+		    fieldLabel: gettext('Send email to'),
+		    name: 'mailto',
+		    emptyText: PVE.Utils.noneText
 		}
 	    ]
 	});
@@ -64,6 +70,11 @@ Ext.define('PVE.window.Backup', {
 		    mode: values.mode,
 		    remove: 0
 		};
+
+		if ( values.mailto ) {
+		    params.mailto = values.mailto;
+		}
+
 		if (values.compress) {
 		    params.compress = values.compress;
 		}
-- 
2.1.4





More information about the pve-devel mailing list