{{ name }}
-
+
{{ title }}
-
+
- {{ t('repod', 'Download') }} {{ size ? `(${episodeFileSize})` : '' }}
+ {{ t('repod', 'Download') }}
+ {{ size ? `(${humanFileSize(size)})` : '' }}
@@ -25,6 +30,7 @@ import { NcAvatar, NcButton } from '@nextcloud/vue'
import DownloadIcon from 'vue-material-design-icons/Download.vue'
import OpenInNewIcon from 'vue-material-design-icons/OpenInNew.vue'
import SafeHtml from './SafeHtml.vue'
+import { filenameFromUrl } from '../../utils/url.js'
import { humanFileSize } from '../../utils/size.js'
export default {
@@ -66,16 +72,15 @@ export default {
required: true,
},
},
- computed: {
- episodeFileSize() {
- return humanFileSize(this.size)
- },
+ methods: {
+ filenameFromUrl,
+ humanFileSize,
},
}