thelounge/client/components/LinkPreviewFileSize.vue
Pavel Djundik f2bf1fa90a Use friendlysize helper consistently
Co-Authored-By: fnutt <fnutt@users.noreply.github.com>
2019-12-16 22:00:35 +02:00

19 lines
309 B
Vue

<template>
<span class="preview-size">({{ previewSize }})</span>
</template>
<script>
import friendlysize from "../js/helpers/friendlysize";
export default {
name: "LinkPreviewFileSize",
props: {
size: Number,
},
computed: {
previewSize() {
return friendlysize(this.size);
},
},
};
</script>