From 449bb6f0ce550fdf7beac8a8897d77f2862e2822 Mon Sep 17 00:00:00 2001 From: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:45:52 +0100 Subject: [PATCH] fix: remove group storage capacity from profile page (#2798) --- frontend/pages/user/profile/index.vue | 43 +-------------------------- 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/frontend/pages/user/profile/index.vue b/frontend/pages/user/profile/index.vue index 8f9f23c951fe..ddb011550d1a 100644 --- a/frontend/pages/user/profile/index.vue +++ b/frontend/pages/user/profile/index.vue @@ -55,7 +55,7 @@

{{ $t('profile.account-summary-description') }}

- + {{ $t('profile.group-statistics') }} @@ -75,22 +75,6 @@ - - - {{ $t('profile.storage-capacity') }} - - {{ $t('profile.storage-capacity-description') }} - {{ $t('general.this-feature-is-currently-inactive') }} - - - - - - - - @@ -344,33 +328,8 @@ export default defineComponent({ return statsTo.value[key] ?? "unknown"; } - const storage = useAsync(async () => { - const { data } = await api.groups.storage(); - - if (data) { - return data; - } - }, useAsyncKey()); - - const storageUsedPercentage = computed(() => { - if (!storage.value) { - return 0; - } - - return (storage.value?.usedStorageBytes / storage.value?.totalStorageBytes) * 100 ?? 0; - }); - - const storageText = computed(() => { - if (!storage.value) { - return "Loading..."; - } - return `${storage.value.usedStorageStr} / ${storage.value.totalStorageStr}`; - }); - return { groupSlug, - storageText, - storageUsedPercentage, getStatsTitle, getStatsIcon, getStatsTo,