mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 09:27:03 +03:00
Bugfix: conflicting File object with native JS
Cleanup: Stores and tooltips
This commit is contained in:
parent
1df2e00862
commit
db0d03db83
43 changed files with 204 additions and 295 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { pInt } from 'Common/Utils';
|
||||
import { File } from 'Common/File';
|
||||
import { FileInfo } from 'Common/File';
|
||||
|
||||
import { AbstractModel } from 'Knoin/AbstractModel';
|
||||
|
||||
|
|
@ -51,11 +51,11 @@ export class ComposeAttachmentModel extends AbstractModel {
|
|||
|
||||
friendlySize: () => {
|
||||
const localSize = this.size();
|
||||
return null === localSize ? '' : File.friendlySize(localSize);
|
||||
return null === localSize ? '' : FileInfo.friendlySize(localSize);
|
||||
},
|
||||
|
||||
mimeType: () => File.getContentType(this.fileName()),
|
||||
fileExt: () => File.getExtension(this.fileName())
|
||||
mimeType: () => FileInfo.getContentType(this.fileName()),
|
||||
fileExt: () => FileInfo.getExtension(this.fileName())
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -96,13 +96,13 @@ export class ComposeAttachmentModel extends AbstractModel {
|
|||
* @returns {string}
|
||||
*/
|
||||
iconClass() {
|
||||
return File.getIconClass(this.fileExt(), this.mimeType())[0];
|
||||
return FileInfo.getIconClass(this.fileExt(), this.mimeType())[0];
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
iconText() {
|
||||
return File.getIconClass(this.fileExt(), this.mimeType())[1];
|
||||
return FileInfo.getIconClass(this.fileExt(), this.mimeType())[1];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue