Add cmd interface

Code refactoring
This commit is contained in:
RainLoop Team 2016-08-24 01:17:50 +03:00
parent e6e1a19477
commit 962391e2a0
23 changed files with 180 additions and 223 deletions

View file

@ -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);
}
}