mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Add cmd interface
Code refactoring
This commit is contained in:
parent
e6e1a19477
commit
962391e2a0
23 changed files with 180 additions and 223 deletions
|
|
@ -2,6 +2,8 @@
|
|||
import window from 'window';
|
||||
import ko from 'ko';
|
||||
|
||||
import {Magics} from 'Common/Enums';
|
||||
|
||||
class QuotaUserStore
|
||||
{
|
||||
constructor() {
|
||||
|
|
@ -24,8 +26,8 @@ class QuotaUserStore
|
|||
* @param {number} usage
|
||||
*/
|
||||
populateData(quota, usage) {
|
||||
this.quota(quota * 1024);
|
||||
this.usage(usage * 1024);
|
||||
this.quota(quota * Magics.BitLength1024);
|
||||
this.usage(usage * Magics.BitLength1024);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue