mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Simplify AppUserStore.contactsIsAllowed
This commit is contained in:
parent
8157692a29
commit
676de1ed23
6 changed files with 6 additions and 12 deletions
|
|
@ -4,9 +4,7 @@ import { addObservablesTo } from 'Common/Utils';
|
|||
import { ThemeStore } from 'Stores/Theme';
|
||||
|
||||
export const AppUserStore = {
|
||||
populate: () => {
|
||||
AppUserStore.contactsIsAllowed(!!SettingsGet('ContactsIsAllowed'));
|
||||
}
|
||||
allowContacts: () => !!SettingsGet('ContactsIsAllowed')
|
||||
};
|
||||
|
||||
addObservablesTo(AppUserStore, {
|
||||
|
|
@ -16,9 +14,7 @@ addObservablesTo(AppUserStore, {
|
|||
|
||||
threadsAllowed: false,
|
||||
|
||||
composeInEdit: false,
|
||||
|
||||
contactsIsAllowed: false
|
||||
composeInEdit: false
|
||||
});
|
||||
|
||||
AppUserStore.focusedState.subscribe(value => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue