2016-10-25 13:16:15 +00:00
|
|
|
import Chat from './chat/Chat';
|
|
|
|
import SettingsMenu from './settings/SettingsMenu';
|
|
|
|
import Profile from './profile/Profile';
|
|
|
|
import ContactListView from './contactlist/ContactListView';
|
2016-11-02 21:14:36 +00:00
|
|
|
import UIUtil from '../util/UIUtil';
|
2016-10-25 13:16:15 +00:00
|
|
|
|
|
|
|
const SidePanels = {
|
|
|
|
init (eventEmitter) {
|
|
|
|
//Initialize chat
|
2016-11-02 21:14:36 +00:00
|
|
|
if (UIUtil.isButtonEnabled('chat'))
|
|
|
|
Chat.init(eventEmitter);
|
2016-10-25 13:16:15 +00:00
|
|
|
//Initialize settings
|
2016-11-02 21:14:36 +00:00
|
|
|
if (UIUtil.isButtonEnabled('settings'))
|
|
|
|
SettingsMenu.init(eventEmitter);
|
2016-10-25 13:16:15 +00:00
|
|
|
//Initialize profile
|
2016-11-02 21:14:36 +00:00
|
|
|
if (UIUtil.isButtonEnabled('profile'))
|
|
|
|
Profile.init(eventEmitter);
|
2016-10-25 13:16:15 +00:00
|
|
|
//Initialize contact list view
|
2016-11-02 21:14:36 +00:00
|
|
|
if (UIUtil.isButtonEnabled('contacts'))
|
|
|
|
ContactListView.init();
|
2016-10-25 13:16:15 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default SidePanels;
|