Skip to content

Commit 449bb6f

Browse files
authored
fix: remove group storage capacity from profile page (#2798)
1 parent 415afbf commit 449bb6f

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

frontend/pages/user/profile/index.vue

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<p>{{ $t('profile.account-summary-description') }}</p>
5656
</div>
5757
<v-row tag="section">
58-
<v-col cols="12" sm="12" md="6">
58+
<v-col cols="12" sm="12" md="12">
5959
<v-card outlined>
6060
<v-card-title class="headline pb-0"> {{ $t('profile.group-statistics') }} </v-card-title>
6161
<v-card-text class="py-0">
@@ -75,22 +75,6 @@
7575
</v-card-text>
7676
</v-card>
7777
</v-col>
78-
<v-col cols="12" sm="12" md="6" class="d-flex align-strart">
79-
<v-card outlined>
80-
<v-card-title class="headline pb-0"> {{ $t('profile.storage-capacity') }} </v-card-title>
81-
<v-card-text class="py-0">
82-
{{ $t('profile.storage-capacity-description') }}
83-
<strong> {{ $t('general.this-feature-is-currently-inactive') }}</strong>
84-
</v-card-text>
85-
<v-card-text>
86-
<v-progress-linear :value="storageUsedPercentage" color="accent" class="rounded" height="30">
87-
<template #default>
88-
<strong> {{ storageText }} </strong>
89-
</template>
90-
</v-progress-linear>
91-
</v-card-text>
92-
</v-card>
93-
</v-col>
9478
</v-row>
9579
</section>
9680
<v-divider class="my-7"></v-divider>
@@ -344,33 +328,8 @@ export default defineComponent({
344328
return statsTo.value[key] ?? "unknown";
345329
}
346330
347-
const storage = useAsync(async () => {
348-
const { data } = await api.groups.storage();
349-
350-
if (data) {
351-
return data;
352-
}
353-
}, useAsyncKey());
354-
355-
const storageUsedPercentage = computed(() => {
356-
if (!storage.value) {
357-
return 0;
358-
}
359-
360-
return (storage.value?.usedStorageBytes / storage.value?.totalStorageBytes) * 100 ?? 0;
361-
});
362-
363-
const storageText = computed(() => {
364-
if (!storage.value) {
365-
return "Loading...";
366-
}
367-
return `${storage.value.usedStorageStr} / ${storage.value.totalStorageStr}`;
368-
});
369-
370331
return {
371332
groupSlug,
372-
storageText,
373-
storageUsedPercentage,
374333
getStatsTitle,
375334
getStatsIcon,
376335
getStatsTo,

0 commit comments

Comments
 (0)