-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a 0 total default to 100 #11
Comments
HI Jean, this.value = startValue || 0;
this.total = total || 100; i could an an about condition like what do you think ? best regards, Andi |
My issue is not that it doesn't return tho. I can just call The problem to me is that it instantly skip thought this progress bar without marking it as completed and when you look at what was logged you see I fixed it for now by enabling Wouldn't it be simple to just change that one line of code? this.value = (typeof startValue !== undefined) ? startValue : 100; or something similar. Thanks! |
thats a good, suggestion! i think we can do this without any backward compatibility issue. |
please try the latest version from the master branch. |
Oh wow glad you got it despite that ridiculous line of code I wrote.. Never write code in a rush before a meeting. Wasn't even the right value haha. Anyway I just tried it and it work perfectly. It even get completed when I call Thanks and have a 🌠 for your trouble :) |
You plan on releasing the new version when? seem like haven't done that in a while, the official one is still 1.3.0. |
HI Jean, thats not correct. The GitHub as well as the related NPM release are pointed to v1.4.1 (since 4 month). I will release v1.5.0 today :) |
On github it seem the latest version is still 1.3.0 no? or am I misreading this. Anyway npm is updated and that's all I needed, thanks! |
Click on show 4 newer tags on the top of the last drafted release |
This issue still remains in 1.5.0 because of this line 7605d2c#diff-cd4284509ea6de13aeaac4abc9e81bbdR75 please reopen this issue |
if you put 0 as the total it will show as 100 (sometime you don't want to change the logic but just happen to have nothing to insert in the db that particular time.)
will show
progress [----------------------------------------] 0% | ETA: nulls | 0/100
instead of
progress [----------------------------------------] 0% | ETA: nulls | 0/0
The text was updated successfully, but these errors were encountered: