wip
This commit is contained in:
parent
ccf153b8cd
commit
56fcf15cae
|
@ -30,7 +30,6 @@ import Vue from 'vue';
|
||||||
import * as anime from 'animejs';
|
import * as anime from 'animejs';
|
||||||
import contextmenu from '../../api/contextmenu';
|
import contextmenu from '../../api/contextmenu';
|
||||||
import copyToClipboard from '../../../common/scripts/copy-to-clipboard';
|
import copyToClipboard from '../../../common/scripts/copy-to-clipboard';
|
||||||
import bytesToSize from '../../../common/scripts/bytes-to-size';
|
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['file'],
|
props: ['file'],
|
||||||
|
@ -48,7 +47,7 @@ export default Vue.extend({
|
||||||
return this.browser.selectedFiles.some(f => f.id == this.file.id);
|
return this.browser.selectedFiles.some(f => f.id == this.file.id);
|
||||||
},
|
},
|
||||||
title(): string {
|
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 {
|
background(): string {
|
||||||
return this.file.properties.average_color
|
return this.file.properties.average_color
|
||||||
|
|
Loading…
Reference in a new issue