[pve-devel] [PATCH v2 manager 8/8] ui: backup job: set guest name as default notes-template

Fabian Ebner f.ebner at proxmox.com
Tue Mar 29 14:53:24 CEST 2022


for newly created jobs.

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

New in v2.

 www/manager6/dc/Backup.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 02a2bf4c..830888c2 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -241,6 +241,7 @@ Ext.define('PVE.dc.BackupEdit', {
 		    name: 'notes-template',
 		    fieldLabel: gettext('Notes'),
 		    deleteEmpty: !me.isCreate,
+		    value: me.isCreate ? '$GUESTNAME' : undefined,
 		    autoEl: {
 			tag: 'div',
 			'data-qtip': Ext.String.format(
-- 
2.30.2






More information about the pve-devel mailing list