Skip to content

Commit

Permalink
Fix for folder progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuba Płaskonka committed Sep 3, 2021
1 parent 2b4afb1 commit eec0a64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Resources/public/js/pimcore/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ pimcore.plugin.PimcoreEnrichmentBundle = Class.create(pimcore.plugin.admin, {
},

postOpenObject: function (object, type) {
if (this.hasWorkflow(object)) {
if (this.showProgress(object)) {
var key = 'progressbar_' + object.id;
var value = new pimcore.plugin.PimcoreEnrichmentBundle.ProgressBar(object);
pimcore.globalmanager.add(key, value);
}
},

postSaveObject: function (object) {
if (this.hasWorkflow(object)) {
if (this.showProgress(object)) {
var key = 'progressbar_' + object.id;
pimcore.globalmanager.get(key).refreshProgress();
}
},

hasWorkflow: function (object) {
return true;
showProgress: function (object) {
return object.workflows !== undefined;
}
});

Expand Down

0 comments on commit eec0a64

Please sign in to comment.