mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 14:57:26 +08:00
36 lines
No EOL
693 B
JavaScript
36 lines
No EOL
693 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'),
|
|
LinkBuilder = require('../Common/LinkBuilder.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 LinkBuilder.change(this.email);
|
|
};
|
|
|
|
module.exports = AccountModel;
|
|
|
|
}(module)); |