ui: manual backup: also set notes-template default

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>
This commit is contained in:
Fabian Ebner 2022-05-09 12:34:12 +02:00 committed by Thomas Lamprecht
parent 3f488b618b
commit c4dca88b5e

View File

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