mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-23 22:36:01 +08:00
35 lines
No EOL
654 B
JavaScript
35 lines
No EOL
654 B
JavaScript
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
(function (module, require) {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
ko = require('ko')
|
|
;
|
|
|
|
/**
|
|
* @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 require('LinkBuilder').change(this.email);
|
|
};
|
|
|
|
module.exports = AccountModel;
|
|
|
|
}(module, require)); |