mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Probable fix for #860
This commit is contained in:
parent
b93a31f950
commit
f023a0799c
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import { keyScope, leftPanelDisabled, SettingsGet, elementById } from 'Common/Globals';
|
import { keyScope, leftPanelDisabled, SettingsGet, elementById } from 'Common/Globals';
|
||||||
import { addObservablesTo } from 'External/ko';
|
import { addObservablesTo } from 'External/ko';
|
||||||
import { ThemeStore } from 'Stores/Theme';
|
import { ThemeStore } from 'Stores/Theme';
|
||||||
|
import { arePopupsVisible } from 'Knoin/Knoin';
|
||||||
|
|
||||||
export const AppUserStore = {
|
export const AppUserStore = {
|
||||||
allowContacts: () => !!SettingsGet('contactsAllowed')
|
allowContacts: () => !!SettingsGet('contactsAllowed')
|
||||||
|
|
@ -15,7 +16,7 @@ addObservablesTo(AppUserStore, {
|
||||||
AppUserStore.focusedState.subscribe(value => {
|
AppUserStore.focusedState.subscribe(value => {
|
||||||
['FolderList','MessageList','MessageView'].forEach(name => {
|
['FolderList','MessageList','MessageView'].forEach(name => {
|
||||||
if (name === value) {
|
if (name === value) {
|
||||||
keyScope(value);
|
arePopupsVisible() || keyScope(value);
|
||||||
ThemeStore.isMobile() && leftPanelDisabled('FolderList' !== value);
|
ThemeStore.isMobile() && leftPanelDisabled('FolderList' !== value);
|
||||||
}
|
}
|
||||||
let dom = elementById('V-Mail'+name);
|
let dom = elementById('V-Mail'+name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue