mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
some ko.computed() to addComputables()/addComputablesTo()
This commit is contained in:
parent
099560ca6a
commit
023c8f603b
9 changed files with 110 additions and 107 deletions
|
|
@ -66,8 +66,6 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
|||
this.allowMessageListActions = Settings.capa(Capa.MessageListActions);
|
||||
this.allowDangerousActions = Settings.capa(Capa.DangerousActions);
|
||||
|
||||
this.popupVisibility = ko.computed(() => 0 < popupVisibilityNames().length);
|
||||
|
||||
this.messageList = MessageUserStore.list;
|
||||
|
||||
this.sortSupported = FolderUserStore.sortSupported;
|
||||
|
|
@ -78,13 +76,17 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
|||
this.isMessageSelected = MessageUserStore.isMessageSelected;
|
||||
this.messageListSearch = MessageUserStore.listSearch;
|
||||
this.messageListError = MessageUserStore.listError;
|
||||
this.folderMenuForMove = ko.computed(() =>
|
||||
folderListOptionsBuilder(
|
||||
[FolderUserStore.currentFolderFullNameRaw()],
|
||||
[],
|
||||
item => item ? item.localName() : ''
|
||||
)
|
||||
);
|
||||
|
||||
this.addComputables({
|
||||
popupVisibility: () => 0 < popupVisibilityNames().length,
|
||||
|
||||
folderMenuForMove: () =>
|
||||
folderListOptionsBuilder(
|
||||
[FolderUserStore.currentFolderFullNameRaw()],
|
||||
[],
|
||||
item => item ? item.localName() : ''
|
||||
)
|
||||
});
|
||||
|
||||
this.useCheckboxesInList = SettingsUserStore.useCheckboxesInList;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue