ui: fix RemoteEdit password change

we have to remove the password from the submitvalues if it did not
change

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-05-28 17:15:15 +02:00 committed by Thomas Lamprecht
parent 91e5bb49f5
commit 6bba120d14

View File

@ -75,4 +75,15 @@ Ext.define('PBS.window.RemoteEdit', {
},
],
},
getValues: function() {
let me = this;
let values = me.callParent(arguments);
if (values.password === '') {
delete values.password;
}
return values;
},
});