Repository navigation
update space quota on upload, delete and restore - #7415
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
6f8d576 to
81c32c9
Compare
| }, | ||
| quotaUsagePercent() { | ||
| return ((this.spaceQuota.used / this.spaceQuota.total) * 100).toFixed(1) | ||
| return parseFloat(((this.spaceQuota.used / this.spaceQuota.total) * 100).toFixed(2)) |
There was a problem hiding this comment.
Aligned to oc10 user quota view
| ...(user.quota && | ||
| user.quota.definition !== 'default' && | ||
| user.quota.definition !== 'none' && { quota: user.quota }) |
There was a problem hiding this comment.
I don't get this conditions, we load the user quota on other places without those conditions
|
SonarCloud Quality Gate failed. |
kulmann
left a comment
There was a problem hiding this comment.
Setting the quota in spaces / non-spaces environments has quite some code duplication across the different files touched in this PR. Do you want to continue to work on that or keep it as is for now?
| ...(user.quota && | ||
| user.quota.definition !== 'default' && | ||
| user.quota.definition !== 'none' && { quota: user.quota }) |
|
@kulmann If you can give me some tips, I can for sure remove some code duplication |
Nevermind. Just saw that the code duplication is in mixins. As we want to get rid of those it's not worth it I think. |








Description
Note: While uploading files with uppy we check the quota of the respective space, this is why we should keep spaces in sync
Tackling the following issues:
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: