mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-20 05:37:47 +00:00
feat(undock) expose buttons for docking / undocking iframe (#11560)
This commit is contained in:
29
react/features/toolbox/components/web/DockIframeButton.js
Normal file
29
react/features/toolbox/components/web/DockIframeButton.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// @flow
|
||||
|
||||
import { translate } from '../../../base/i18n';
|
||||
import { IconDock } from '../../../base/icons';
|
||||
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
|
||||
|
||||
declare var APP: Object;
|
||||
|
||||
/**
|
||||
* Implementation of a button for notifying integrators that iframe should be docked.
|
||||
*/
|
||||
class DockIframeButton extends AbstractButton<AbstractButtonProps, *> {
|
||||
accessibilityLabel = 'toolbar.accessibilityLabel.dock';
|
||||
icon = IconDock;
|
||||
label = 'toolbar.dock';
|
||||
tooltip = 'toolbar.dock';
|
||||
|
||||
/**
|
||||
* Handles clicking / pressing the button by triggering external api event.
|
||||
*
|
||||
* @protected
|
||||
* @returns {void}
|
||||
*/
|
||||
_handleClick() {
|
||||
APP.API.notifyIframeDockStateChanged(true);
|
||||
}
|
||||
}
|
||||
|
||||
export default translate(DockIframeButton);
|
||||
Reference in New Issue
Block a user