diff --git a/src/components/Feed/Modal.vue b/src/components/Feed/Modal.vue index 7770231..25cb76b 100644 --- a/src/components/Feed/Modal.vue +++ b/src/components/Feed/Modal.vue @@ -22,7 +22,7 @@ - {{ t('repod', 'Download') }} {{ size ? `(${humanFileSize(size)})` : '' }} + {{ t('repod', 'Download') }} {{ size ? `(${episodeFileSize})` : '' }} @@ -73,6 +73,9 @@ export default { }, }, computed: { + episodeFileSize() { + return humanFileSize(this.size) + }, strippedDescription() { const pre = document.createElement('pre') pre.innerHTML = this.description @@ -80,9 +83,6 @@ export default { return strippedDescription.replace(/\n/g, '
') }, }, - methods: { - humanFileSize, - }, }