mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
Added individual signatures for every identity.
This commit is contained in:
parent
996703311b
commit
1119022916
45 changed files with 1353 additions and 337 deletions
|
|
@ -26,6 +26,7 @@
|
|||
SettingsStore = require('Stores/User/Settings'),
|
||||
AccountStore = require('Stores/User/Account'),
|
||||
IdentityStore = require('Stores/User/Identity'),
|
||||
TemplateStore = require('Stores/User/Template'),
|
||||
FolderStore = require('Stores/User/Folder'),
|
||||
PgpStore = require('Stores/User/Pgp'),
|
||||
|
||||
|
|
@ -587,6 +588,8 @@
|
|||
oIdentity.name(Utils.pString(oIdentityData['Name']));
|
||||
oIdentity.replyTo(Utils.pString(oIdentityData['ReplyTo']));
|
||||
oIdentity.bcc(Utils.pString(oIdentityData['Bcc']));
|
||||
oIdentity.signature(Utils.pString(oIdentityData['Signature']));
|
||||
oIdentity.signatureInsertBefore(!!oIdentityData['SignatureInsertBefore']);
|
||||
|
||||
return oIdentity;
|
||||
}));
|
||||
|
|
@ -595,6 +598,29 @@
|
|||
});
|
||||
};
|
||||
|
||||
AppUser.prototype.templates = function ()
|
||||
{
|
||||
TemplateStore.templates.loading(true);
|
||||
|
||||
Remote.templates(function (sResult, oData) {
|
||||
|
||||
TemplateStore.templates.loading(false);
|
||||
|
||||
if (Enums.StorageResultType.Success === sResult && oData.Result &&
|
||||
Utils.isArray(oData.Result['Templates']))
|
||||
{
|
||||
Utils.delegateRunOnDestroy(TemplateStore.templates());
|
||||
|
||||
IdentityStore.templates(_.map(oData.Result['Templates'], function (oIdentityData) {
|
||||
return {
|
||||
'id': Utils.pString(oIdentityData['Id']),
|
||||
'name': Utils.pString(oIdentityData['Name'])
|
||||
};
|
||||
}));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
AppUser.prototype.quota = function ()
|
||||
{
|
||||
Remote.quota(function (sResult, oData) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue