From 56fcf15cae5366a27f1f9acb2d29db7170eeca67 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 20 Feb 2018 08:05:41 +0900 Subject: [PATCH] wip --- src/web/app/desktop/views/components/drive-file.vue | 3 +-- 1 file changed, 1 insertion(+), 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 772b9baf5..ffdf7ef57 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