mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Better observable naming in MessageUserStore
This commit is contained in:
parent
2aceb89a8b
commit
b95541892f
4 changed files with 29 additions and 38 deletions
|
|
@ -82,7 +82,7 @@ export class MailMessageList extends AbstractViewRight {
|
|||
|
||||
this.messageListEndThreadUid = MessageUserStore.listEndThreadUid;
|
||||
|
||||
this.messageListCompleteLoadingThrottle = MessageUserStore.listCompleteLoading;
|
||||
this.messageListIsLoading = MessageUserStore.listIsLoading;
|
||||
|
||||
initOnStartOrLangChange(() => this.emptySubjectValue = i18n('MESSAGE_LIST/EMPTY_SUBJECT_TEXT'));
|
||||
|
||||
|
|
@ -263,7 +263,7 @@ export class MailMessageList extends AbstractViewRight {
|
|||
}
|
||||
|
||||
reloadCommand() {
|
||||
if (!MessageUserStore.listLoadingAnimation()) {
|
||||
if (!MessageUserStore.listIsLoading()) {
|
||||
rl.app.reloadMessageList(false, true);
|
||||
}
|
||||
}
|
||||
|
|
@ -602,7 +602,7 @@ export class MailMessageList extends AbstractViewRight {
|
|||
listEmptyMessage() {
|
||||
if (!this.dragOver()
|
||||
&& !MessageUserStore.list().length
|
||||
&& !MessageUserStore.listCompleteLoading()
|
||||
&& !MessageUserStore.listIsLoading()
|
||||
&& !MessageUserStore.listError()) {
|
||||
return i18n('MESSAGE_LIST/EMPTY_' + (MessageUserStore.listSearch() ? 'SEARCH_' : '') + 'LIST');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ export class MailMessageView extends AbstractViewRight {
|
|||
},
|
||||
|
||||
messageListOrViewLoading:
|
||||
() => MessageUserStore.listCompleteLoading() | MessageUserStore.messageLoading()
|
||||
() => MessageUserStore.listIsLoading() | MessageUserStore.messageLoading()
|
||||
});
|
||||
|
||||
this.addSubscribables({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue