From 257408e84ad9d5c8b829d5aabcbd91e7fd1433c0 Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Thu, 17 Aug 2023 07:59:48 +0200 Subject: [PATCH] Revert "Fix: show unrestricted as total quota if applies (#9577)" This reverts commit 98887c7053dd012b78f2bb9256a5c20fa26e05a6. --- .../src/components/Spaces/SpacesList.vue | 4 ---- packages/web-app-files/src/views/spaces/Projects.vue | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/web-app-admin-settings/src/components/Spaces/SpacesList.vue b/packages/web-app-admin-settings/src/components/Spaces/SpacesList.vue index 0bc6ac52711..9def78bb585 100644 --- a/packages/web-app-admin-settings/src/components/Spaces/SpacesList.vue +++ b/packages/web-app-admin-settings/src/components/Spaces/SpacesList.vue @@ -340,10 +340,6 @@ export default defineComponent({ return formatRelativeDateFromJSDate(new Date(date), currentLanguage) } const getTotalQuota = (space: SpaceResource) => { - if (space.spaceQuota.total === 0) { - return $gettext('Unrestricted') - } - return formatFileSize(space.spaceQuota.total, currentLanguage) } const getUsedQuota = (space: SpaceResource) => { diff --git a/packages/web-app-files/src/views/spaces/Projects.vue b/packages/web-app-files/src/views/spaces/Projects.vue index 6da5de18e4a..c6de9eff2b4 100644 --- a/packages/web-app-files/src/views/spaces/Projects.vue +++ b/packages/web-app-files/src/views/spaces/Projects.vue @@ -179,7 +179,7 @@ export default defineComponent({ const clientService = useClientService() const { selectedResourcesIds } = useSelectedResources({ store }) const { can } = useAbility() - const { current: currentLanguage, $gettext } = useGettext() + const { current: currentLanguage } = useGettext() const runtimeSpaces = computed((): SpaceResource[] => { return store.getters['runtime/spaces/spaces'].filter((s) => isProjectSpaceResource(s)) || [] @@ -244,10 +244,6 @@ export default defineComponent({ } const getTotalQuota = (space: SpaceResource) => { - if (space.spaceQuota.total === 0) { - return $gettext('Unrestricted') - } - return formatFileSize(space.spaceQuota.total, currentLanguage) } const getUsedQuota = (space: SpaceResource) => {