Cleanup Date.fromNow() and friendlySize()

This commit is contained in:
djmaze 2020-10-03 14:02:33 +02:00
parent 2bd9528098
commit a0f8ac0dad
7 changed files with 28 additions and 50 deletions

View file

@ -15,7 +15,8 @@ import { UNUSED_OPTION_VALUE } from 'Common/Consts';
import { leftPanelDisabled, moveAction } from 'Common/Globals';
import { computedPagenatorHelper, friendlySize } from 'Common/Utils';
import { computedPagenatorHelper } from 'Common/Utils';
import { File } from 'Common/File';
import { mailBox, append } from 'Common/Links';
import { Selector } from 'Common/Selector';
@ -903,9 +904,9 @@ class MessageListMailBoxUserView extends AbstractViewNext {
quotaTooltip() {
return i18n('MESSAGE_LIST/QUOTA_SIZE', {
'SIZE': friendlySize(this.userUsageSize()),
'SIZE': File.friendlySize(this.userUsageSize()),
'PROC': this.userUsageProc(),
'LIMIT': friendlySize(this.userQuota())
'LIMIT': File.friendlySize(this.userQuota())
});
}