f2bf1fa90a
Co-Authored-By: fnutt <fnutt@users.noreply.github.com>
20 lines
309 B
Vue
20 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>
|