snappymail/dev/Models/AccountModel.js
2014-08-20 19:03:12 +04:00

35 lines
No EOL
650 B
JavaScript

/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
(function (module) {
'use strict';
var
ko = require('../External/ko.js')
;
/**
* @param {string} sEmail
* @param {boolean=} bCanBeDelete = true
* @constructor
*/
function AccountModel(sEmail, bCanBeDelete)
{
this.email = sEmail;
this.deleteAccess = ko.observable(false);
this.canBeDalete = ko.observable(bCanBeDelete);
}
AccountModel.prototype.email = '';
/**
* @return {string}
*/
AccountModel.prototype.changeAccountLink = function ()
{
return RL.link().change(this.email); // TODO cjs
};
module.exports = AccountModel;
}(module));