jiti-meet/modules/UI/side_pannels/SidePanels.js

24 lines
776 B
JavaScript
Raw Normal View History

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';
import UIUtil from '../util/UIUtil';
2016-10-25 13:16:15 +00:00
const SidePanels = {
init (eventEmitter) {
//Initialize chat
if (UIUtil.isButtonEnabled('chat'))
Chat.init(eventEmitter);
2016-10-25 13:16:15 +00:00
//Initialize settings
if (UIUtil.isButtonEnabled('settings'))
SettingsMenu.init(eventEmitter);
2016-10-25 13:16:15 +00:00
//Initialize profile
if (UIUtil.isButtonEnabled('profile'))
Profile.init(eventEmitter);
2016-10-25 13:16:15 +00:00
//Initialize contact list view
if (UIUtil.isButtonEnabled('contacts'))
ContactListView.init();
2016-10-25 13:16:15 +00:00
}
};
export default SidePanels;