2017-02-16 23:02:40 +00:00
|
|
|
/* @flow */
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
2017-09-22 22:02:34 +00:00
|
|
|
import { ParticipantCounter } from '../contact-list';
|
2017-06-04 03:12:04 +00:00
|
|
|
import { openDeviceSelectionDialog } from '../device-selection';
|
2017-05-19 15:12:24 +00:00
|
|
|
import { openDialOutDialog } from '../dial-out';
|
2017-09-20 20:38:07 +00:00
|
|
|
|
|
|
|
import {
|
|
|
|
InfoDialogButton,
|
|
|
|
openAddPeopleDialog,
|
|
|
|
openInviteDialog
|
|
|
|
} from '../invite';
|
2017-09-22 22:02:34 +00:00
|
|
|
import { VideoQualityButton } from '../video-quality';
|
2017-08-16 21:28:39 +00:00
|
|
|
|
2017-09-20 20:38:07 +00:00
|
|
|
import UIEvents from '../../../service/UI/UIEvents';
|
|
|
|
|
2017-09-22 22:02:34 +00:00
|
|
|
import ProfileButton from './components/ProfileButton';
|
2017-08-30 23:17:55 +00:00
|
|
|
|
2017-02-16 23:02:40 +00:00
|
|
|
declare var APP: Object;
|
2017-06-04 03:12:04 +00:00
|
|
|
declare var interfaceConfig: Object;
|
2017-02-16 23:02:40 +00:00
|
|
|
declare var JitsiMeetJS: Object;
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* All toolbar buttons' descriptors.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
2017-06-04 03:12:04 +00:00
|
|
|
const buttons: Object = {
|
2017-06-14 18:41:22 +00:00
|
|
|
addtocall: {
|
|
|
|
classNames: [ 'button', 'icon-add' ],
|
|
|
|
enabled: true,
|
|
|
|
id: 'toolbar_button_add',
|
|
|
|
isDisplayed: () => !APP.store.getState()['features/jwt'].isGuest,
|
2017-07-26 20:47:53 +00:00
|
|
|
onClick(dispatch) {
|
2017-06-14 18:41:22 +00:00
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.add.clicked');
|
|
|
|
|
2017-07-26 20:47:53 +00:00
|
|
|
dispatch(openAddPeopleDialog());
|
2017-06-14 18:41:22 +00:00
|
|
|
},
|
|
|
|
tooltipKey: 'toolbar.addPeople'
|
|
|
|
},
|
|
|
|
|
2017-02-16 23:02:40 +00:00
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the camera toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
camera: {
|
|
|
|
classNames: [ 'button', 'icon-camera' ],
|
|
|
|
enabled: true,
|
2017-06-04 03:12:04 +00:00
|
|
|
isDisplayed: () => true,
|
2017-02-16 23:02:40 +00:00
|
|
|
id: 'toolbar_button_camera',
|
|
|
|
onClick() {
|
2017-08-18 11:30:30 +00:00
|
|
|
const newVideoMutedState = !APP.conference.isLocalVideoMuted();
|
|
|
|
|
|
|
|
if (newVideoMutedState) {
|
2017-02-16 23:02:40 +00:00
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.video.enabled');
|
|
|
|
} else {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.video.disabled');
|
|
|
|
}
|
2017-08-18 11:30:30 +00:00
|
|
|
APP.UI.emitEvent(UIEvents.VIDEO_MUTED, newVideoMutedState);
|
2017-02-16 23:02:40 +00:00
|
|
|
},
|
2017-04-05 15:14:26 +00:00
|
|
|
popups: [
|
|
|
|
{
|
|
|
|
dataAttr: 'audioOnly.featureToggleDisabled',
|
|
|
|
dataInterpolate: { feature: 'video mute' },
|
|
|
|
id: 'unmuteWhileAudioOnly'
|
|
|
|
}
|
|
|
|
],
|
2017-02-16 23:02:40 +00:00
|
|
|
shortcut: 'V',
|
|
|
|
shortcutAttr: 'toggleVideoPopover',
|
|
|
|
shortcutFunc() {
|
2017-04-05 15:14:26 +00:00
|
|
|
if (APP.conference.isAudioOnly()) {
|
|
|
|
APP.UI.emitEvent(UIEvents.VIDEO_UNMUTING_WHILE_AUDIO_ONLY);
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-02-16 23:02:40 +00:00
|
|
|
JitsiMeetJS.analytics.sendEvent('shortcut.videomute.toggled');
|
|
|
|
APP.conference.toggleVideoMuted();
|
|
|
|
},
|
|
|
|
shortcutDescription: 'keyboardShortcuts.videoMute',
|
|
|
|
tooltipKey: 'toolbar.videomute'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the chat toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
chat: {
|
|
|
|
classNames: [ 'button', 'icon-chat' ],
|
|
|
|
enabled: true,
|
|
|
|
html: <span className = 'badge-round'>
|
|
|
|
<span id = 'unreadMessages' />
|
|
|
|
</span>,
|
|
|
|
id: 'toolbar_button_chat',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.chat.toggled');
|
|
|
|
APP.UI.emitEvent(UIEvents.TOGGLE_CHAT);
|
|
|
|
},
|
|
|
|
shortcut: 'C',
|
|
|
|
shortcutAttr: 'toggleChatPopover',
|
|
|
|
shortcutFunc() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('shortcut.chat.toggled');
|
|
|
|
APP.UI.toggleChat();
|
|
|
|
},
|
|
|
|
shortcutDescription: 'keyboardShortcuts.toggleChat',
|
|
|
|
sideContainerId: 'chat_container',
|
|
|
|
tooltipKey: 'toolbar.chat'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the contact list toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
contacts: {
|
2017-08-30 23:17:55 +00:00
|
|
|
childComponent: ParticipantCounter,
|
2017-02-16 23:02:40 +00:00
|
|
|
classNames: [ 'button', 'icon-contactList' ],
|
|
|
|
enabled: true,
|
|
|
|
id: 'toolbar_contact_list',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent(
|
|
|
|
'toolbar.contacts.toggled');
|
|
|
|
APP.UI.emitEvent(UIEvents.TOGGLE_CONTACT_LIST);
|
|
|
|
},
|
|
|
|
sideContainerId: 'contacts_container',
|
|
|
|
tooltipKey: 'bottomtoolbar.contactlist'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the desktop sharing toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
desktop: {
|
|
|
|
classNames: [ 'button', 'icon-share-desktop' ],
|
|
|
|
enabled: true,
|
|
|
|
id: 'toolbar_button_desktopsharing',
|
|
|
|
onClick() {
|
|
|
|
if (APP.conference.isSharingScreen) {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.screen.disabled');
|
|
|
|
} else {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.screen.enabled');
|
|
|
|
}
|
|
|
|
APP.UI.emitEvent(UIEvents.TOGGLE_SCREENSHARING);
|
|
|
|
},
|
2017-04-05 15:14:26 +00:00
|
|
|
popups: [
|
|
|
|
{
|
|
|
|
dataAttr: 'audioOnly.featureToggleDisabled',
|
|
|
|
dataInterpolate: { feature: 'screen sharing' },
|
|
|
|
id: 'screenshareWhileAudioOnly'
|
|
|
|
}
|
|
|
|
],
|
2017-02-16 23:02:40 +00:00
|
|
|
shortcut: 'D',
|
|
|
|
shortcutAttr: 'toggleDesktopSharingPopover',
|
|
|
|
shortcutFunc() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('shortcut.screen.toggled');
|
2017-08-21 08:57:58 +00:00
|
|
|
|
|
|
|
// eslint-disable-next-line no-empty-function
|
|
|
|
APP.conference.toggleScreenSharing().catch(() => {});
|
2017-02-16 23:02:40 +00:00
|
|
|
},
|
|
|
|
shortcutDescription: 'keyboardShortcuts.toggleScreensharing',
|
|
|
|
tooltipKey: 'toolbar.sharescreen'
|
|
|
|
},
|
|
|
|
|
2017-05-19 15:12:24 +00:00
|
|
|
/**
|
|
|
|
* The descriptor of the dial out toolbar button.
|
|
|
|
*/
|
|
|
|
dialout: {
|
|
|
|
classNames: [ 'button', 'icon-telephone' ],
|
|
|
|
enabled: true,
|
|
|
|
|
|
|
|
// Will be displayed once the SIP calls functionality is detected.
|
|
|
|
hidden: true,
|
|
|
|
id: 'toolbar_button_dial_out',
|
2017-07-26 20:47:53 +00:00
|
|
|
onClick(dispatch) {
|
2017-05-19 15:12:24 +00:00
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.sip.clicked');
|
2017-06-04 03:12:04 +00:00
|
|
|
|
2017-07-26 20:47:53 +00:00
|
|
|
dispatch(openDialOutDialog());
|
2017-05-19 15:12:24 +00:00
|
|
|
},
|
|
|
|
tooltipKey: 'dialOut.dialOut'
|
|
|
|
},
|
|
|
|
|
2017-06-04 03:12:04 +00:00
|
|
|
/**
|
|
|
|
* The descriptor of the device selection toolbar button.
|
|
|
|
*/
|
|
|
|
fodeviceselection: {
|
|
|
|
classNames: [ 'button', 'icon-settings' ],
|
|
|
|
enabled: true,
|
|
|
|
isDisplayed() {
|
|
|
|
return interfaceConfig.filmStripOnly;
|
|
|
|
},
|
|
|
|
id: 'toolbar_button_fodeviceselection',
|
2017-07-26 20:47:53 +00:00
|
|
|
onClick(dispatch) {
|
2017-06-04 03:12:04 +00:00
|
|
|
JitsiMeetJS.analytics.sendEvent(
|
|
|
|
'toolbar.fodeviceselection.toggled');
|
|
|
|
|
2017-07-26 20:47:53 +00:00
|
|
|
dispatch(openDeviceSelectionDialog());
|
2017-06-04 03:12:04 +00:00
|
|
|
},
|
|
|
|
sideContainerId: 'settings_container',
|
|
|
|
tooltipKey: 'toolbar.Settings'
|
|
|
|
},
|
|
|
|
|
2017-02-16 23:02:40 +00:00
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the dialpad toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
dialpad: {
|
|
|
|
classNames: [ 'button', 'icon-dialpad' ],
|
|
|
|
enabled: true,
|
|
|
|
|
|
|
|
// TODO: remove it after UI.updateDTMFSupport fix
|
|
|
|
hidden: true,
|
|
|
|
id: 'toolbar_button_dialpad',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.sip.dialpad.clicked');
|
|
|
|
},
|
|
|
|
tooltipKey: 'toolbar.dialpad'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the etherpad toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
etherpad: {
|
|
|
|
classNames: [ 'button', 'icon-share-doc' ],
|
|
|
|
enabled: true,
|
|
|
|
hidden: true,
|
|
|
|
id: 'toolbar_button_etherpad',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.etherpad.clicked');
|
|
|
|
APP.UI.emitEvent(UIEvents.ETHERPAD_CLICKED);
|
|
|
|
},
|
|
|
|
tooltipKey: 'toolbar.etherpad'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the toolbar button which toggles full-screen mode.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
fullscreen: {
|
|
|
|
classNames: [ 'button', 'icon-full-screen' ],
|
|
|
|
enabled: true,
|
|
|
|
id: 'toolbar_button_fullScreen',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.fullscreen.enabled');
|
|
|
|
|
|
|
|
APP.UI.emitEvent(UIEvents.TOGGLE_FULLSCREEN);
|
|
|
|
},
|
|
|
|
shortcut: 'S',
|
|
|
|
shortcutAttr: 'toggleFullscreenPopover',
|
|
|
|
shortcutDescription: 'keyboardShortcuts.fullScreen',
|
|
|
|
shortcutFunc() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('shortcut.fullscreen.toggled');
|
|
|
|
APP.UI.toggleFullScreen();
|
|
|
|
},
|
|
|
|
tooltipKey: 'toolbar.fullscreen'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the toolbar button which hangs up the call/conference.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
hangup: {
|
|
|
|
classNames: [ 'button', 'icon-hangup', 'button_hangup' ],
|
|
|
|
enabled: true,
|
2017-06-04 03:12:04 +00:00
|
|
|
isDisplayed: () => true,
|
2017-02-16 23:02:40 +00:00
|
|
|
id: 'toolbar_button_hangup',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.hangup');
|
|
|
|
APP.UI.emitEvent(UIEvents.HANGUP);
|
|
|
|
},
|
|
|
|
tooltipKey: 'toolbar.hangup'
|
|
|
|
},
|
|
|
|
|
2017-09-20 20:38:07 +00:00
|
|
|
/**
|
|
|
|
* The descriptor of the toolbar button which opens a dialog for the
|
|
|
|
* conference URL and inviting others.
|
|
|
|
*/
|
|
|
|
info: {
|
|
|
|
component: InfoDialogButton
|
|
|
|
},
|
|
|
|
|
2017-02-16 23:02:40 +00:00
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the toolbar button which shows the invite user dialog.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
invite: {
|
|
|
|
classNames: [ 'button', 'icon-link' ],
|
|
|
|
enabled: true,
|
|
|
|
id: 'toolbar_button_link',
|
2017-07-26 20:47:53 +00:00
|
|
|
onClick(dispatch) {
|
2017-02-16 23:02:40 +00:00
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.invite.clicked');
|
2017-06-04 03:12:04 +00:00
|
|
|
|
2017-07-26 20:47:53 +00:00
|
|
|
dispatch(openInviteDialog());
|
2017-02-16 23:02:40 +00:00
|
|
|
},
|
|
|
|
tooltipKey: 'toolbar.invite'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the microphone toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
microphone: {
|
|
|
|
classNames: [ 'button', 'icon-microphone' ],
|
|
|
|
enabled: true,
|
2017-06-04 03:12:04 +00:00
|
|
|
isDisplayed: () => true,
|
2017-02-16 23:02:40 +00:00
|
|
|
id: 'toolbar_button_mute',
|
|
|
|
onClick() {
|
|
|
|
const sharedVideoManager = APP.UI.getSharedVideoManager();
|
|
|
|
|
2017-08-18 11:30:30 +00:00
|
|
|
if (APP.conference.isLocalAudioMuted()) {
|
2017-02-16 23:02:40 +00:00
|
|
|
// If there's a shared video with the volume "on" and we aren't
|
|
|
|
// the video owner, we warn the user
|
|
|
|
// that currently it's not possible to unmute.
|
|
|
|
if (sharedVideoManager
|
|
|
|
&& sharedVideoManager.isSharedVideoVolumeOn()
|
|
|
|
&& !sharedVideoManager.isSharedVideoOwner()) {
|
|
|
|
APP.UI.showCustomToolbarPopup(
|
|
|
|
'#unableToUnmutePopup', true, 5000);
|
|
|
|
} else {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.audio.unmuted');
|
|
|
|
APP.UI.emitEvent(UIEvents.AUDIO_MUTED, false, true);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.audio.muted');
|
|
|
|
APP.UI.emitEvent(UIEvents.AUDIO_MUTED, true, true);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
popups: [
|
|
|
|
{
|
|
|
|
dataAttr: 'toolbar.micMutedPopup',
|
|
|
|
id: 'micMutedPopup'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
dataAttr: 'toolbar.unableToUnmutePopup',
|
|
|
|
id: 'unableToUnmutePopup'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
dataAttr: 'toolbar.talkWhileMutedPopup',
|
|
|
|
id: 'talkWhileMutedPopup'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
shortcut: 'M',
|
|
|
|
shortcutAttr: 'mutePopover',
|
|
|
|
shortcutFunc() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('shortcut.audiomute.toggled');
|
|
|
|
APP.conference.toggleAudioMuted();
|
|
|
|
},
|
|
|
|
shortcutDescription: 'keyboardShortcuts.mute',
|
|
|
|
tooltipKey: 'toolbar.mute'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the profile toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
profile: {
|
2017-09-22 22:02:34 +00:00
|
|
|
component: ProfileButton,
|
|
|
|
sideContainerId: 'profile_container'
|
2017-02-16 23:02:40 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the "Raise hand" toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
raisehand: {
|
|
|
|
classNames: [ 'button', 'icon-raised-hand' ],
|
|
|
|
enabled: true,
|
|
|
|
id: 'toolbar_button_raisehand',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.raiseHand.clicked');
|
|
|
|
APP.conference.maybeToggleRaisedHand();
|
|
|
|
},
|
|
|
|
shortcut: 'R',
|
|
|
|
shortcutAttr: 'raiseHandPopover',
|
|
|
|
shortcutDescription: 'keyboardShortcuts.raiseHand',
|
|
|
|
shortcutFunc() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('shortcut.raisehand.clicked');
|
|
|
|
APP.conference.maybeToggleRaisedHand();
|
|
|
|
},
|
|
|
|
tooltipKey: 'toolbar.raiseHand'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the recording toolbar button. Requires additional
|
|
|
|
* initialization in the recording module.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
recording: {
|
|
|
|
classNames: [ 'button' ],
|
|
|
|
enabled: true,
|
|
|
|
|
|
|
|
// will be displayed once the recording functionality is detected
|
|
|
|
hidden: true,
|
|
|
|
id: 'toolbar_button_record',
|
|
|
|
tooltipKey: 'liveStreaming.buttonTooltip'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the settings toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
settings: {
|
|
|
|
classNames: [ 'button', 'icon-settings' ],
|
|
|
|
enabled: true,
|
|
|
|
id: 'toolbar_button_settings',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.settings.toggled');
|
|
|
|
APP.UI.emitEvent(UIEvents.TOGGLE_SETTINGS);
|
|
|
|
},
|
|
|
|
sideContainerId: 'settings_container',
|
|
|
|
tooltipKey: 'toolbar.Settings'
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
2017-04-01 05:52:40 +00:00
|
|
|
* The descriptor of the "Share YouTube video" toolbar button.
|
2017-02-16 23:02:40 +00:00
|
|
|
*/
|
|
|
|
sharedvideo: {
|
|
|
|
classNames: [ 'button', 'icon-shared-video' ],
|
|
|
|
enabled: true,
|
|
|
|
id: 'toolbar_button_sharedvideo',
|
|
|
|
onClick() {
|
|
|
|
JitsiMeetJS.analytics.sendEvent('toolbar.sharedvideo.clicked');
|
|
|
|
APP.UI.emitEvent(UIEvents.SHARED_VIDEO_CLICKED);
|
|
|
|
},
|
|
|
|
popups: [
|
|
|
|
{
|
|
|
|
dataAttr: 'toolbar.sharedVideoMutedPopup',
|
|
|
|
id: 'sharedVideoMutedPopup'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
tooltipKey: 'toolbar.sharedvideo'
|
2017-08-09 19:40:03 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
videoquality: {
|
|
|
|
component: VideoQualityButton
|
2017-02-16 23:02:40 +00:00
|
|
|
}
|
|
|
|
};
|
2017-06-04 03:12:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
Object.keys(buttons).forEach(name => {
|
|
|
|
const button = buttons[name];
|
|
|
|
|
|
|
|
if (!button.isDisplayed) {
|
|
|
|
button.isDisplayed = () => !interfaceConfig.filmStripOnly;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default buttons;
|