mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #298
This commit is contained in:
parent
40a0391092
commit
13f270f426
9 changed files with 75 additions and 90 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { Scope } from 'Common/Enums';
|
||||
import { elementById } from 'Common/Globals';
|
||||
import { elementById, exitFullscreen } from 'Common/Globals';
|
||||
import { addObservablesTo, addSubscribablesTo } from 'External/ko';
|
||||
|
||||
import { AppUserStore } from 'Stores/User/App';
|
||||
|
|
@ -12,7 +12,6 @@ export const MessageUserStore = new class {
|
|||
message: null,
|
||||
error: '',
|
||||
loading: false,
|
||||
fullScreen: false,
|
||||
|
||||
// Cache mail bodies
|
||||
bodiesDom: null,
|
||||
|
|
@ -31,8 +30,7 @@ export const MessageUserStore = new class {
|
|||
}
|
||||
} else {
|
||||
AppUserStore.focusedState(Scope.MessageList);
|
||||
|
||||
this.fullScreen(false);
|
||||
exitFullscreen();
|
||||
this.hideMessageBodies();
|
||||
}
|
||||
},
|
||||
|
|
@ -41,10 +39,6 @@ export const MessageUserStore = new class {
|
|||
this.purgeMessageBodyCache = this.purgeMessageBodyCache.throttle(30000);
|
||||
}
|
||||
|
||||
toggleFullScreen() {
|
||||
MessageUserStore.fullScreen(!MessageUserStore.fullScreen());
|
||||
}
|
||||
|
||||
purgeMessageBodyCache() {
|
||||
const messagesDom = this.bodiesDom(),
|
||||
children = messagesDom && messagesDom.children;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue