[pbs-devel] [PATCH proxmox-backup 2/2] ui: fix refresh after TFA unlock
Dominik Csapak
d.csapak at proxmox.com
Tue Jun 27 13:29:23 CEST 2023
while it does work, the correct way to fix this is to add the column dataindex
to the model definition, since that is what the diffstore uses to update it's
data on a load
i sent a fix for that, which is intended to be applied instead of this patch:
https://lists.proxmox.com/pipermail/pbs-devel/2023-June/006244.html
On 6/27/23 12:04, Lukas Wagner wrote:
> Problem was that refresh after unlock did not work properly.
> Also calling load on the outer store seems to fix it, but I'm
> not sure why. Judging from the code in `DiffStore.js`, the
> outer store seems be subscribed to the `load` event from `rstore`,
> performing a load itself if the event occurs.
>
> Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
> ---
> www/config/UserView.js | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/www/config/UserView.js b/www/config/UserView.js
> index 9a0a0b2b..168af902 100644
> --- a/www/config/UserView.js
> +++ b/www/config/UserView.js
> @@ -95,7 +95,10 @@ Ext.define('PBS.config.UserView', {
> return Ext.String.htmlEncode(userid.match(/^(.+)@([^@]+)$/)[2]);
> },
>
> - reload: function() { this.getView().getStore().rstore.load(); },
> + reload: function() {
> + this.getView().getStore().rstore.load();
> + this.getView().getStore().load();
> + },
>
> init: function(view) {
> Proxmox.Utils.monStoreErrors(view, view.getStore().rstore);
More information about the pbs-devel
mailing list