mirror of
https://github.com/thelounge/thelounge
synced 2024-11-29 23:40:28 +00:00
f2bf1fa90a
Co-Authored-By: fnutt <fnutt@users.noreply.github.com>
19 lines
309 B
Vue
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>
|