]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: dc/ACMEClusterView: use a diff/update store combo for the grids
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 7 May 2020 08:27:09 +0000 (10:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 May 2020 10:54:30 +0000 (12:54 +0200)
so that they are get automatically reloaded with the default interval (3seconds)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/ACMEClusterView.js

index 228d1cf9055e0bd2c2d108c00eaaa2153e693b5e..00db8e9f9db8e4fc6b49dddd0d9e4b7c96ccb5c2 100644 (file)
@@ -90,8 +90,15 @@ Ext.define('PVE.dc.ACMEAccountView', {
     },
 
     store: {
-       model: 'pve-acme-accounts',
-       autoLoad: true,
+       type: 'diff',
+       autoDestroy: true,
+       autoDestroyRstore: true,
+       rstore: {
+           type: 'update',
+           storeid: 'pve-acme-accounts',
+           model: 'pve-acme-accounts',
+           autoStart: true,
+       },
        sorters: 'name',
     },
 });
@@ -179,9 +186,16 @@ Ext.define('PVE.dc.ACMEPluginView', {
     },
 
     store: {
-       model: 'pve-acme-plugins',
-       autoLoad: true,
-       filters: item => !!item.data.api,
+       type: 'diff',
+       autoDestroy: true,
+       autoDestroyRstore: true,
+       rstore: {
+           type: 'update',
+           storeid: 'pve-acme-plugins',
+           model: 'pve-acme-plugins',
+           autoStart: true,
+           filters: item => !!item.data.api,
+       },
        sorters: 'plugin',
     },
 });