thelounge/client/components/LinkPreviewFileSize.vue

20 lines
309 B
Vue
Raw Normal View History

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