Skip to content

Commit

Permalink
Fix: Ensure totalPercentage does not go below zero during installatio…
Browse files Browse the repository at this point in the history
…n progress update

Fix: Can not install.
  • Loading branch information
jerrykuku committed Dec 11, 2024
1 parent df89812 commit 37d2d57
Show file tree
Hide file tree
Showing 3 changed files with 1,176 additions and 1,106 deletions.
3 changes: 2 additions & 1 deletion src/components/Apps/AppPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,8 @@ export default {
this.currentInstallAppType = resData.type
if (resData.message !== '') {
this.totalPercentage = Number(resData.message)
const progress = Number(resData.message)
this.totalPercentage = progress < 0 ? 0 : progress
if (this.totalPercentage === 0) {
this.currentInstallAppText = 'Starting installation'
Expand Down
Loading

0 comments on commit 37d2d57

Please sign in to comment.