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

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