[pve-devel] [PATCH widget-toolkit 1/5] ObjectGrid: optionally show loading on reload
Aaron Lauterer
a.lauterer at proxmox.com
Fri Jul 1 16:16:38 CEST 2022
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
src/grid/ObjectGrid.js | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/grid/ObjectGrid.js b/src/grid/ObjectGrid.js
index b355d6d..3c01851 100644
--- a/src/grid/ObjectGrid.js
+++ b/src/grid/ObjectGrid.js
@@ -48,6 +48,8 @@ Ext.define('Proxmox.grid.ObjectGrid', {
// see top-level doc-comment above for details/example
gridRows: [],
+ showReloading: false,
+
disabled: false,
hideHeaders: true,
@@ -221,7 +223,16 @@ Ext.define('Proxmox.grid.ObjectGrid', {
reload: function() {
let me = this;
- me.rstore.load();
+ let param;
+ if (me.showReloading) {
+ me.setLoading();
+ param = {
+ callback: function() {
+ me.setLoading(false);
+ },
+ };
+ }
+ me.rstore.load(param);
},
getObjectValue: function(key, defaultValue) {
--
2.30.2
More information about the pve-devel
mailing list