Skip to content

Commit

Permalink
Revert "Fix: show unrestricted as total quota if applies (#9577)"
Browse files Browse the repository at this point in the history
This reverts commit 98887c7.
  • Loading branch information
JammingBen committed Aug 17, 2023
1 parent 07619b3 commit 257408e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
6 changes: 1 addition & 5 deletions packages/web-app-files/src/views/spaces/Projects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)) || []
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 257408e

Please sign in to comment.