From da33ec0241d930e3abd86eb223e93b7055d4e8a1 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Thu, 21 Oct 2021 11:13:41 +0200 Subject: [PATCH] Fixes crash at About Page, closes #1594 --- front/src/components/About.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/components/About.vue b/front/src/components/About.vue index dd1b5eeaa..7a5d08ab4 100644 --- a/front/src/components/About.vue +++ b/front/src/components/About.vue @@ -38,7 +38,7 @@ Sign up now to keep a track of your favorites, create playlists, discover new content and much more!

- Users on this pod also get %{ quota } of free storage to upload their own content! + Users on this pod also get %{ quota } of free storage to upload their own content!

@@ -141,6 +141,7 @@ import { mapState } from "vuex" import _ from '@/lodash' import showdown from 'showdown' +import {humanSize} from '@/filters' import SignupForm from "@/components/auth/SignupForm" import LogoText from "@/components/LogoText" @@ -217,7 +218,7 @@ export default { return _.get(this.nodeinfo, 'openRegistrations') }, defaultUploadQuota () { - return _.get(this.nodeinfo, 'metadata.defaultUploadQuota') + return humanSize(_.get(this.nodeinfo, 'metadata.defaultUploadQuota') * 1000 * 1000) }, federationEnabled () { return _.get(this.nodeinfo, 'metadata.library.federationEnabled')