mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Update video thumbnail design Update design of indicators In filmstrip view move Screen Sharing indicator to the top Removed dominant speaker indicator Use ContextMenu component for the connection stats popover Combine Remove video menu and Meeting participant context menu into one component Moved some styles from SCSS to JSS Fix mobile avatars too big Fix mobile horizontal scroll Created button for Send to breakout room action
60 lines
1.6 KiB
JavaScript
60 lines
1.6 KiB
JavaScript
/* @flow */
|
|
|
|
import React from 'react';
|
|
|
|
import ContextMenuItem from '../../../base/components/context-menu/ContextMenuItem';
|
|
import { translate } from '../../../base/i18n';
|
|
import { IconCrown } from '../../../base/icons';
|
|
import { connect } from '../../../base/redux';
|
|
import AbstractGrantModeratorButton, {
|
|
_mapStateToProps,
|
|
type Props
|
|
} from '../AbstractGrantModeratorButton';
|
|
|
|
declare var interfaceConfig: Object;
|
|
|
|
/**
|
|
* Implements a React {@link Component} which displays a button for granting
|
|
* moderator to a participant.
|
|
*/
|
|
class GrantModeratorButton extends AbstractGrantModeratorButton {
|
|
/**
|
|
* Instantiates a new {@code GrantModeratorButton}.
|
|
*
|
|
* @inheritdoc
|
|
*/
|
|
constructor(props: Props) {
|
|
super(props);
|
|
|
|
this._handleClick = this._handleClick.bind(this);
|
|
}
|
|
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
const { t, visible } = this.props;
|
|
|
|
if (!visible) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<ContextMenuItem
|
|
accessibilityLabel = { t('toolbar.accessibilityLabel.grantModerator') }
|
|
className = 'grantmoderatorlink'
|
|
icon = { IconCrown }
|
|
// eslint-disable-next-line react/jsx-handler-names
|
|
onClick = { this._handleClick }
|
|
text = { t('videothumbnail.grantModerator') } />
|
|
);
|
|
}
|
|
|
|
_handleClick: () => void;
|
|
}
|
|
|
|
export default translate(connect(_mapStateToProps)(GrantModeratorButton));
|