mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Restructure JavaScript
Split list code from MessageUserStore into MessagelistUserStore Move functions out of AppUser
This commit is contained in:
parent
60b7f61e42
commit
661cd2aaf9
26 changed files with 1144 additions and 1186 deletions
|
|
@ -2,6 +2,7 @@ import { i18n, getNotification } from 'Common/Translator';
|
|||
import { setFolderHash } from 'Common/Cache';
|
||||
|
||||
import { MessageUserStore } from 'Stores/User/Message';
|
||||
import { MessagelistUserStore } from 'Stores/User/Messagelist';
|
||||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
|
|
@ -38,7 +39,7 @@ class FolderClearPopupView extends AbstractViewPopup {
|
|||
const folderToClear = this.selectedFolder();
|
||||
if (folderToClear) {
|
||||
MessageUserStore.message(null);
|
||||
MessageUserStore.list([]);
|
||||
MessagelistUserStore([]);
|
||||
|
||||
this.clearingProcess(true);
|
||||
|
||||
|
|
@ -52,7 +53,7 @@ class FolderClearPopupView extends AbstractViewPopup {
|
|||
if (iError) {
|
||||
this.clearingError(getNotification(iError));
|
||||
} else {
|
||||
rl.app.reloadMessageList(true);
|
||||
MessagelistUserStore.reload(true);
|
||||
this.cancelCommand();
|
||||
}
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue