[pbs-devel] [PATCH proxmox-backup 2/2] ui: fix refresh after TFA unlock

Lukas Wagner l.wagner at proxmox.com
Tue Jun 27 12:04:52 CEST 2023


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);
-- 
2.39.2






More information about the pbs-devel mailing list