mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 06:13:28 +00:00
ui: fix reset behavior of backup job editor
when we `bind` we also have to set the initial value correctly, otherwise the form dirty tracking is off (the initial bind set does not reset the `originalValue`) also the bandwidth selector auto transformed the value `null` to `0` when there was no initial transformation. Since this is not a valid value anyway, skip that. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
676cb7dbff
commit
569b038830
@ -350,6 +350,7 @@ Ext.define('PVE.dc.BackupEdit', {
|
||||
],
|
||||
fieldLabel: gettext('Notification mode'),
|
||||
name: 'notification-mode',
|
||||
value: '__default__',
|
||||
cbind: {
|
||||
deleteEmpty: '{!isCreate}',
|
||||
},
|
||||
|
@ -62,7 +62,7 @@ Ext.define('PVE.form.SizeField', {
|
||||
flex: 1,
|
||||
enableKeyEvents: true,
|
||||
setValue: function(v) {
|
||||
if (!this._transformed) {
|
||||
if (!this._transformed && v !== null) {
|
||||
let fieldContainer = this.up('fieldcontainer');
|
||||
let vm = fieldContainer.getViewModel();
|
||||
let unit = vm.get('unit');
|
||||
|
@ -185,6 +185,7 @@ Ext.define('PVE.panel.BackupAdvancedOptions', {
|
||||
clusterView: true,
|
||||
storageContent: 'images',
|
||||
allowBlank: false,
|
||||
disabled: true,
|
||||
bind: {
|
||||
disabled: '{!fleecingEnabled.checked}',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user