fix: don't request API when disableUsedPercentage: true

This commit is contained in:
Gabriel Alencar 2023-02-06 15:28:33 -03:00
parent 4cfccb0f67
commit 537258b315

View File

@ -150,6 +150,9 @@ export default {
? this.$route.path
: this.$route.path + "/";
let usageStats = { used: 0, total: 0, usedPercentage: 0 };
if (this.disableUsedPercentage) {
return usageStats;
}
try {
let usage = await api.usage(path);
usageStats = {