mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Cleanup Date.fromNow() and friendlySize()
This commit is contained in:
parent
2bd9528098
commit
a0f8ac0dad
7 changed files with 28 additions and 50 deletions
|
|
@ -5,8 +5,7 @@ import { i18n } from 'Common/Translator';
|
|||
|
||||
import {
|
||||
pInt,
|
||||
encodeHtml,
|
||||
friendlySize
|
||||
encodeHtml
|
||||
} from 'Common/Utils';
|
||||
|
||||
import { messageViewLink, messageDownloadLink } from 'Common/Links';
|
||||
|
|
@ -188,7 +187,7 @@ class MessageModel extends AbstractModel {
|
|||
* @returns {string}
|
||||
*/
|
||||
friendlySize() {
|
||||
return friendlySize(this.size());
|
||||
return File.friendlySize(this.size());
|
||||
}
|
||||
|
||||
computeSenderEmail() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue