Skip to content

Commit

Permalink
fix: correctly auto-reload the processes grid again (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored Oct 12, 2023
1 parent c0b9047 commit 3001e98
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ pimcore.plugin.processmanager.processes = Class.create({
},

reloadProcesses: function() {
pimcore.globalmanager.get(this.storeId).load(function () {
this.createInterval();
}.bind(this));
pimcore.globalmanager.get(this.storeId).load();
},

clear: function(seconds, msg) {
Expand Down Expand Up @@ -95,6 +93,10 @@ pimcore.plugin.processmanager.processes = Class.create({
]
});

store.on('load', function () {
this.createInterval();
}.bind(this));

pimcore.globalmanager.add(this.storeId, store);
this.reloadProcesses();
},
Expand Down

0 comments on commit 3001e98

Please sign in to comment.