Skip to content

Commit

Permalink
fix(progress): Ignore autoSuccess since it does not make sense for mu…
Browse files Browse the repository at this point in the history
…ltiple progress bars
  • Loading branch information
exoego committed May 25, 2019
1 parent eb3346c commit 1497b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/modules/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ $.fn.progress = function(parameters) {
: module.helper.sum(module.percent)
;
if(percent === 100) {
if(settings.autoSuccess && !(module.is.warning() || module.is.error() || module.is.success())) {
if(settings.autoSuccess && $bars.length === 1 && !(module.is.warning() || module.is.error() || module.is.success())) {
module.set.success();
module.debug('Automatically triggering success at 100%');
}
Expand Down

0 comments on commit 1497b64

Please sign in to comment.