mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
showing storage size refactoring
This commit is contained in:
14
resources/js/helpers/functionHelpers.js
vendored
14
resources/js/helpers/functionHelpers.js
vendored
@@ -124,12 +124,14 @@ const FunctionHelpers = {
|
||||
distribution = orderBy(distribution, ['progress'], ['desc'])
|
||||
|
||||
// Push at the end empty space data
|
||||
distribution.push({
|
||||
progress: 100 - storage.data.attributes.percentage,
|
||||
color: 'secondary',
|
||||
value: storage.data.meta.others.used,
|
||||
title: 'Empty'
|
||||
})
|
||||
if (config.subscriptionType !== 'metered') {
|
||||
distribution.push({
|
||||
progress: 100 - storage.data.attributes.percentage,
|
||||
color: 'secondary',
|
||||
value: storage.data.meta.others.used,
|
||||
title: 'Empty'
|
||||
})
|
||||
}
|
||||
|
||||
return distribution
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user