Update ckeditor

Move e2e tests
Code refactoring
This commit is contained in:
RainLoop Team 2016-09-12 23:50:21 +03:00
parent 9993432c7b
commit e5af98b04b
122 changed files with 617 additions and 561 deletions

View file

@ -7,6 +7,8 @@ import {pString, inArray, isNonEmptyArray, fakeMd5, delegateRunOnDestroy, window
import {i18n} from 'Common/Translator';
import {getFolderFromCacheList} from 'Common/Cache';
import AccountStore from 'Stores/User/Account';
import {FilterConditionModel} from 'Model/FilterCondition';
import {AbstractModel} from 'Knoin/AbstractModel';
@ -214,7 +216,7 @@ class FilterModel extends AbstractModel
}
setRecipients() {
this.actionValueFourth(require('Stores/User/Account').accountsEmails().join(', '));
this.actionValueFourth(AccountStore.accountsEmails().join(', '));
}
parse(json) {

View file

@ -16,6 +16,9 @@ import {
import {$win} from 'Common/Globals';
import {messageViewLink, messageDownloadLink} from 'Common/Links';
import FolderStore from 'Stores/User/Folder';
import PgpStore from 'Stores/User/Pgp';
import {emailArrayFromJson, emailArrayToStringClear, emailArrayToString, replyHelper} from 'Helper/Message';
import {AttachmentModel, staticCombinedIconClass} from 'Model/Attachment';
@ -211,8 +214,8 @@ class MessageModel extends AbstractModel
computeSenderEmail() {
const
sentFolder = require('Stores/User/Folder').sentFolder(),
draftFolder = require('Stores/User/Folder').draftFolder();
sentFolder = FolderStore.sentFolder(),
draftFolder = FolderStore.draftFolder();
this.senderEmailsString(this.folderFullNameRaw === sentFolder || this.folderFullNameRaw === draftFolder ?
this.toEmailsString() : this.fromEmailString());
@ -307,7 +310,7 @@ class MessageModel extends AbstractModel
this.proxy = !!json.ExternalProxy;
if (require('Stores/User/Pgp').capaOpenPGP())
if (PgpStore.capaOpenPGP())
{
this.isPgpSigned(!!json.PgpSigned);
this.isPgpEncrypted(!!json.PgpEncrypted);