mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Identities refactoring and improvements (Reply-To and BCC)
This commit is contained in:
parent
3e01887f85
commit
493191375f
43 changed files with 578 additions and 1051 deletions
|
|
@ -21,8 +21,6 @@
|
|||
// this.incLogin = ko.observable('');
|
||||
// this.outLogin = ko.observable('');
|
||||
|
||||
this.displayName = ko.observable('');
|
||||
this.replyTo = ko.observable('');
|
||||
this.signature = ko.observable('');
|
||||
|
||||
this.accounts = ko.observableArray([]);
|
||||
|
|
@ -70,9 +68,7 @@
|
|||
// this.incLogin(Settings.settingsGet('IncLogin'));
|
||||
// this.outLogin(Settings.settingsGet('OutLogin'));
|
||||
|
||||
this.displayName(Settings.settingsGet('DisplayName'));
|
||||
this.replyTo(Settings.settingsGet('ReplyTo'));
|
||||
this.signature(Settings.settingsGet('Signature'));
|
||||
// this.signature(Settings.settingsGet('Signature'));
|
||||
};
|
||||
|
||||
module.exports = new AccountUserStore();
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
ko = require('ko'),
|
||||
|
||||
Settings = require('Storage/Settings'),
|
||||
|
||||
|
||||
AppStore = require('Stores/App')
|
||||
;
|
||||
|
||||
|
|
@ -36,7 +36,9 @@
|
|||
|
||||
this.projectHash(Settings.settingsGet('ProjectHash'));
|
||||
|
||||
this.contactsAutosave(!!Settings.settingsGet('ContactsAutosave'));
|
||||
this.useLocalProxyForExternalImages(!!Settings.settingsGet('UseLocalProxyForExternalImages'));
|
||||
|
||||
this.contactsIsAllowed(!!Settings.settingsGet('ContactsIsAllowed'));
|
||||
|
||||
this.devEmail = Settings.settingsGet('DevEmail');
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@
|
|||
'use strict';
|
||||
|
||||
var
|
||||
ko = require('ko'),
|
||||
|
||||
Settings = require('Storage/Settings')
|
||||
ko = require('ko')
|
||||
;
|
||||
|
||||
/**
|
||||
|
|
@ -14,17 +12,10 @@
|
|||
*/
|
||||
function IdentityUserStore()
|
||||
{
|
||||
this.defaultIdentityID = ko.observable('');
|
||||
|
||||
this.identities = ko.observableArray([]);
|
||||
this.identities.loading = ko.observable(false).extend({'throttle': 100});
|
||||
}
|
||||
|
||||
IdentityUserStore.prototype.populate = function ()
|
||||
{
|
||||
this.defaultIdentityID(Settings.settingsGet('DefaultIdentityID'));
|
||||
};
|
||||
|
||||
module.exports = new IdentityUserStore();
|
||||
|
||||
}());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue