*.jsx -> *.js

This commit is contained in:
RainLoop Team 2016-08-11 02:34:09 +03:00
parent 0a2b826f71
commit e88c193334
98 changed files with 341 additions and 340 deletions

36
dev/Model/Account.js Normal file
View file

@ -0,0 +1,36 @@
import ko from 'ko';
import {change} from 'Common/Links';
import {AbstractModel} from 'Knoin/AbstractModel';
class AccountModel extends AbstractModel
{
/**
* @param {string} email
* @param {boolean=} canBeDelete = true
* @param {number=} count = 0
*/
constructor(email, canBeDelete = true, count = 0)
{
super('AccountModel');
this.email = email;
this.count = ko.observable(count);
this.deleteAccess = ko.observable(false);
this.canBeDeleted = ko.observable(!!canBeDelete);
this.canBeEdit = this.canBeDeleted;
}
/**
* @returns {string}
*/
changeAccountLink() {
return change(this.email);
}
}
export {AccountModel, AccountModel as default};