cozy-bar 15.0.0 → 15.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ var StorageData = function StorageData() {
|
|
|
27
27
|
|
|
28
28
|
if (!isLoaded) return null; // we used this default quota set in getStorageData, we just reuse it here
|
|
29
29
|
|
|
30
|
-
var storageData = (0, _instance.makeDiskInfos)(diskUsage.data.
|
|
30
|
+
var storageData = (0, _instance.makeDiskInfos)(diskUsage.data.used, diskUsage.data.quota || Math.max(Math.pow(10, 12), 10 * parseInt(diskUsage.data.used, 10)));
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, t('storage_phrase', {
|
|
32
32
|
diskUsage: storageData.humanDiskUsage,
|
|
33
33
|
diskQuota: storageData.humanDiskQuota
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-bar",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.1",
|
|
4
4
|
"description": "cozy-bar.js library, a small lib provided by cozy-stack to inject the Cozy-bar component into each app",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy Cloud <contact@cozycloud.cc> (https://cozy.io/)",
|