fix: don't request API when disableUsedPercentage: true
This commit is contained in:
parent
4cfccb0f67
commit
537258b315
@ -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 = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user