Skip to content

Commit

Permalink
Fix issue #9259 (#9369)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter authored Jul 10, 2023
1 parent 83dd45c commit 15e09d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Bugfix: Relative user quota display limited to two decimals

If the relative user quota is being reported too precisely from the backend, there was a chance of small display issue.
This has been resolved by limiting the number of decimals that get displayed for the relative quota to two.

https://github.com/owncloud/web/issues/9259
https://github.com/owncloud/web/pull/9369
2 changes: 1 addition & 1 deletion packages/web-runtime/src/components/Topbar/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export default defineComponent({
},
quotaUsagePercent() {
return this.useLegacyQuota
? this.quota.relative
? parseFloat(this.quota.relative.toFixed(2))
: parseFloat(((this.quota.used / this.quota.total) * 100).toFixed(2))
},
Expand Down

0 comments on commit 15e09d8

Please sign in to comment.