diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-12-13 02:47:10 +0100 |
---|---|---|
committer | Eduardo Morales <emoral435@gmail.com> | 2023-12-14 12:56:41 -0600 |
commit | 2d5d782f7ffdee99a58855de3af8f1b8ea6d6c2c (patch) | |
tree | fe6bc9ca7ec1c1e14390cc7baf51aca8c72e0391 /apps | |
parent | bac05cae5b53cc208b7edaa6b2b2a5de86f25035 (diff) | |
download | nextcloud-server-2d5d782f7ffdee99a58855de3af8f1b8ea6d6c2c.tar.gz nextcloud-server-2d5d782f7ffdee99a58855de3af8f1b8ea6d6c2c.zip |
fix(files): Partly revert 32c1aeb and show correct quota again
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/components/NavigationQuota.vue | 4 | ||||
-rw-r--r-- | apps/files/src/views/Navigation.cy.ts | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/files/src/components/NavigationQuota.vue b/apps/files/src/components/NavigationQuota.vue index 4dab7b53a4b..943d61cf0f5 100644 --- a/apps/files/src/components/NavigationQuota.vue +++ b/apps/files/src/components/NavigationQuota.vue @@ -52,8 +52,8 @@ export default { computed: { storageStatsTitle() { - const usedQuotaByte = formatFileSize(this.storageStats?.used, false, false, true) - const quotaByte = formatFileSize(this.storageStats?.quota, false, false, true) + const usedQuotaByte = formatFileSize(this.storageStats?.used, false, false) + const quotaByte = formatFileSize(this.storageStats?.quota, false, false) // If no quota set if (this.storageStats?.quota < 0) { diff --git a/apps/files/src/views/Navigation.cy.ts b/apps/files/src/views/Navigation.cy.ts index a84a4927bb2..cf3512bce0e 100644 --- a/apps/files/src/views/Navigation.cy.ts +++ b/apps/files/src/views/Navigation.cy.ts @@ -178,7 +178,7 @@ describe('Quota rendering', () => { it('Unlimited quota', () => { cy.mockInitialState('files', 'storageStats', { - used: 1000 * 1000 * 1000, + used: 1024 * 1024 * 1024, quota: -1, }) @@ -200,8 +200,8 @@ describe('Quota rendering', () => { it('Non-reached quota', () => { cy.mockInitialState('files', 'storageStats', { - used: 1000 * 1000 * 1000, - quota: 5 * 1000 * 1000 * 1000, + used: 1024 * 1024 * 1024, + quota: 5 * 1024 * 1024 * 1024, relative: 20, // percent }) @@ -224,8 +224,8 @@ describe('Quota rendering', () => { it('Reached quota', () => { cy.mockInitialState('files', 'storageStats', { - used: 5 * 1000 * 1000 * 1000, - quota: 1000 * 1000 * 1000, + used: 5 * 1024 * 1024 * 1024, + quota: 1024 * 1024 * 1024, relative: 500, // percent }) |