mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Idea for contacts screen route
This commit is contained in:
parent
a25d35d6df
commit
fc141fe29b
10 changed files with 197 additions and 9 deletions
33
dev/Screen/User/Contacts.js
Normal file
33
dev/Screen/User/Contacts.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { ScopeContacts } from 'Common/Enums';
|
||||
import { i18n } from 'Common/Translator';
|
||||
|
||||
import { AppUserStore } from 'Stores/User/App';
|
||||
|
||||
import { SystemDropDownUserView } from 'View/User/SystemDropDown';
|
||||
import { AddressBooks } from 'View/User/Contacts/AddressBooks';
|
||||
import { ContactsList } from 'View/User/Contacts/ContactsList';
|
||||
import { ContactView } from 'View/User/Contacts/ContactView';
|
||||
|
||||
import { AbstractScreen } from 'Knoin/AbstractScreen';
|
||||
|
||||
export class ContactsUserScreen extends AbstractScreen {
|
||||
|
||||
constructor() {
|
||||
super('contacts', [
|
||||
SystemDropDownUserView,
|
||||
AddressBooks,
|
||||
ContactsList,
|
||||
ContactView
|
||||
]);
|
||||
}
|
||||
|
||||
onShow() {
|
||||
this.setTitle();
|
||||
AppUserStore.focusedState('none');
|
||||
AppUserStore.focusedState(ScopeContacts);
|
||||
}
|
||||
|
||||
setTitle() {
|
||||
rl.setTitle(i18n('GLOBAL/CONTACTS'));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue