[pbs-devel] [RFC proxmox-backup] ui: sync job edit: fix showing value for target store upon edit of local sync job

Hannes Laimer h.laimer at proxmox.com
Wed Nov 29 07:54:17 CET 2023


On 11/28/23 17:04, Fiona Ebner wrote:
> when editing a local sync job, the field would be empty because of
> this and not be set to the previously configured remote-store.
> 
do you mean when opening the edit window of a local sync job, or when
switching between local/remote? If the former, it's a bug, but I wasn't
able to reproduce it. If the later, it won't be possible to keep it when
switching, the store field is the same field for local and remote, as in
the job config.

But it probably would make sense to rename `remote-` to `source-` as we
did with the labels in the form.

> The binding is already used for the local datastore, not sure why it
> should even be applied to the target where it might not even be valid.
>The pbsRemoteStoreSelector needs to filter the datastores if it's local
since it shouldn't be possible to select the same source as target, 
that's how it knows which to leave out.

> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
> ---
> 
> Not familiar enough with the code, so sending as RFC.
> 
>   www/window/SyncJobEdit.js | 3 ---
>   1 file changed, 3 deletions(-)
> 
> diff --git a/www/window/SyncJobEdit.js b/www/window/SyncJobEdit.js
> index d20def74..06d87bb2 100644
> --- a/www/window/SyncJobEdit.js
> +++ b/www/window/SyncJobEdit.js
> @@ -225,9 +225,6 @@ Ext.define('PBS.window.SyncJobEdit', {
>   			allowBlank: false,
>   			autoSelect: false,
>   			name: 'remote-store',
> -			cbind: {
> -			    datastore: '{datastore}',
> -			},
>   			listeners: {
>   			    change: function(field, value) {
>   				let me = this;




More information about the pbs-devel mailing list