mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-07 15:27:43 +08:00
23 lines
490 B
JavaScript
23 lines
490 B
JavaScript
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||
|
|
||
|
/**
|
||
|
* @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);
|
||
|
};
|