mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Improved boot.js with existing global window.rl
Put dev/Storage/Settings.js in boots.js global rl.settings
This commit is contained in:
parent
f90dbcc84b
commit
aeb5275648
57 changed files with 284 additions and 380 deletions
|
|
@ -30,8 +30,6 @@ import ContactStore from 'Stores/User/Contact';
|
|||
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
|
||||
import * as Settings from 'Storage/Settings';
|
||||
|
||||
import { EmailModel } from 'Model/Email';
|
||||
import { ContactModel } from 'Model/Contact';
|
||||
import { ContactPropertyModel } from 'Model/ContactProperty';
|
||||
|
|
@ -221,7 +219,7 @@ class ContactsPopupView extends AbstractViewNext {
|
|||
|
||||
@command((self) => 0 < self.contactsCheckedOrSelected().length)
|
||||
newMessageCommand() {
|
||||
if (!Settings.capa(Capa.Composer)) {
|
||||
if (!rl.settings.capa(Capa.Composer)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -658,7 +656,7 @@ class ContactsPopupView extends AbstractViewNext {
|
|||
if (this.bBackToCompose) {
|
||||
this.bBackToCompose = false;
|
||||
|
||||
if (Settings.capa(Capa.Composer)) {
|
||||
if (rl.settings.capa(Capa.Composer)) {
|
||||
showScreenPopup(require('View/Popup/Compose'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue