Cleanup constants

This commit is contained in:
djmaze 2020-09-30 14:07:03 +02:00
parent 87e214aef7
commit 0a95e2c6dc
11 changed files with 40 additions and 104 deletions

View file

@ -21,7 +21,6 @@ import {
clearNewMessageCache
} from 'Common/Cache';
import { MESSAGE_BODY_CACHE_LIMIT } from 'Common/Consts';
import { mailBox, notificationMailIcon } from 'Common/Links';
import { i18n, getNotification } from 'Common/Translator';
@ -209,7 +208,7 @@ class MessageUserStore {
}
purgeMessageBodyCache() {
const end = iMessageBodyCacheCount - MESSAGE_BODY_CACHE_LIMIT;
const end = iMessageBodyCacheCount - 15;
if (0 < end) {
let count = 0;
const messagesDom = this.messagesBodiesDom();

View file

@ -1,6 +1,6 @@
import ko from 'ko';
import { MESSAGES_PER_PAGE, MESSAGES_PER_PAGE_VALUES } from 'Common/Consts';
import { MESSAGES_PER_PAGE_VALUES } from 'Common/Consts';
import { Layout, EditorDefaultType } from 'Common/Enums';
import { pInt } from 'Common/Utils';
@ -21,7 +21,7 @@ class SettingsUserStore {
]
});
this.messagesPerPage = ko.observable(MESSAGES_PER_PAGE).extend({ limitedList: MESSAGES_PER_PAGE_VALUES });
this.messagesPerPage = ko.observable(20).extend({ limitedList: MESSAGES_PER_PAGE_VALUES });
this.showImages = ko.observable(false);
this.useCheckboxesInList = ko.observable(true);