diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-20 08:05:41 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-20 08:05:41 +0900 |
| commit | 56fcf15cae5366a27f1f9acb2d29db7170eeca67 (patch) | |
| tree | 2221bddf5e5df11e152ad579f58f6b8b180970b9 /src | |
| parent | wip (diff) | |
| download | misskey-56fcf15cae5366a27f1f9acb2d29db7170eeca67.tar.gz misskey-56fcf15cae5366a27f1f9acb2d29db7170eeca67.tar.bz2 misskey-56fcf15cae5366a27f1f9acb2d29db7170eeca67.zip | |
wip
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/desktop/views/components/drive-file.vue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/app/desktop/views/components/drive-file.vue b/src/web/app/desktop/views/components/drive-file.vue index 772b9baf5e..ffdf7ef57e 100644 --- a/src/web/app/desktop/views/components/drive-file.vue +++ b/src/web/app/desktop/views/components/drive-file.vue @@ -30,7 +30,6 @@ import Vue from 'vue'; import * as anime from 'animejs'; import contextmenu from '../../api/contextmenu'; import copyToClipboard from '../../../common/scripts/copy-to-clipboard'; -import bytesToSize from '../../../common/scripts/bytes-to-size'; export default Vue.extend({ props: ['file'], @@ -48,7 +47,7 @@ export default Vue.extend({ return this.browser.selectedFiles.some(f => f.id == this.file.id); }, title(): string { - return `${this.file.name}\n${this.file.type} ${bytesToSize(this.file.datasize)}`; + return `${this.file.name}\n${this.file.type} ${Vue.filter('bytes')(this.file.datasize)}`; }, background(): string { return this.file.properties.average_color |