]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: manual backup: also set notes-template default
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 9 May 2022 10:34:12 +0000 (12:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 May 2022 15:17:56 +0000 (17:17 +0200)
like is done for other vzdump options already.

Requested in the community forum:
https://forum.proxmox.com/threads/108970/#post-468655

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
www/manager6/window/Backup.js

index f768aee3ed672dcdd25c63f2958c056deaaf1a1d..510430c0c3d7c2dd94b93073349f554b235be6ad 100644 (file)
@@ -113,6 +113,10 @@ Ext.define('PVE.window.Backup', {
                            if (!initialDefaults && data.mode !== undefined) {
                                modeSelector.setValue(data.mode);
                            }
+                           if (!initialDefaults && (data['notes-template'] ?? false)) {
+                               me.down('field[name=notes-template]')
+                                   .setValue(data['notes-template']);
+                           }
 
                            initialDefaults = true;