mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
Merge pull request #42293 from nextcloud/backport/28-files-sizes
This commit is contained in:
commit
f2e156668c
4 changed files with 10 additions and 10 deletions
|
|
@ -51,8 +51,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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
})
|
||||
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue