mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Switch from ko.computed to ko.pureComputed
This should provide performance and memory benefits over regular computed observables
This commit is contained in:
parent
ac2238a23f
commit
954de06f86
18 changed files with 55 additions and 37 deletions
|
|
@ -64,10 +64,6 @@ export class MailMessageList extends AbstractViewRight {
|
|||
|
||||
this.messageList = MessageUserStore.list;
|
||||
|
||||
this.sortSupported = ko.computed(() =>
|
||||
FolderUserStore.hasCapability('SORT') | FolderUserStore.hasCapability('ESORT')
|
||||
);
|
||||
|
||||
this.composeInEdit = AppUserStore.composeInEdit;
|
||||
|
||||
this.isMobile = ThemeStore.isMobile;
|
||||
|
|
@ -107,6 +103,9 @@ export class MailMessageList extends AbstractViewRight {
|
|||
|
||||
this.addComputables({
|
||||
|
||||
sortSupported: () =>
|
||||
FolderUserStore.hasCapability('SORT') | FolderUserStore.hasCapability('ESORT'),
|
||||
|
||||
folderMenuForMove: () =>
|
||||
folderListOptionsBuilder(
|
||||
[FolderUserStore.currentFolderFullName()],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue