mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
Add "Back to video" button
This commit is contained in:
@@ -80,8 +80,9 @@
|
|||||||
},
|
},
|
||||||
"disconnected_banner": "Connectivity to the server has been lost.",
|
"disconnected_banner": "Connectivity to the server has been lost.",
|
||||||
"earpiece": {
|
"earpiece": {
|
||||||
"overlay_title": "Earpiece only mode",
|
"overlay_back_button": "Back to video",
|
||||||
"overlay_description": "Only works while using app"
|
"overlay_description": "Only works while using app",
|
||||||
|
"overlay_title": "Earpiece only mode"
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"call_is_not_supported": "Call is not supported",
|
"call_is_not_supported": "Call is not supported",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ Please see LICENSE in the repository root for full details.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { type FC } from "react";
|
import { type FC } from "react";
|
||||||
import { BigIcon, Heading, Text } from "@vector-im/compound-web";
|
import { BigIcon, Button, Heading, Text } from "@vector-im/compound-web";
|
||||||
import { EarpieceIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
|
import { EarpieceIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
@@ -14,6 +14,7 @@ import styles from "./EarpieceOverlay.module.css";
|
|||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
show: boolean;
|
show: boolean;
|
||||||
|
onBackButtonPressed?: (() => void) | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const EarpieceOverlay: FC<Props> = ({ show }) => {
|
export const EarpieceOverlay: FC<Props> = ({ show }) => {
|
||||||
@@ -27,6 +28,9 @@ export const EarpieceOverlay: FC<Props> = ({ show }) => {
|
|||||||
{t("earpiece.overlay_title")}
|
{t("earpiece.overlay_title")}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Text>{t("earpiece.overlay_description")}</Text>
|
<Text>{t("earpiece.overlay_description")}</Text>
|
||||||
|
<Button kind="primary" size="sm">
|
||||||
|
{t("earpiece.overlay_back_button")}
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -787,7 +787,10 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
{renderContent()}
|
{renderContent()}
|
||||||
<CallEventAudioRenderer vm={vm} muted={muteAllAudio} />
|
<CallEventAudioRenderer vm={vm} muted={muteAllAudio} />
|
||||||
<ReactionsAudioRenderer vm={vm} muted={muteAllAudio} />
|
<ReactionsAudioRenderer vm={vm} muted={muteAllAudio} />
|
||||||
<EarpieceOverlay show={earpieceMode} />
|
<EarpieceOverlay
|
||||||
|
show={earpieceMode}
|
||||||
|
onBackButtonPressed={toggleEarpieceMode}
|
||||||
|
/>
|
||||||
<ReactionsOverlay vm={vm} />
|
<ReactionsOverlay vm={vm} />
|
||||||
{footer}
|
{footer}
|
||||||
{layout.type !== "pip" && (
|
{layout.type !== "pip" && (
|
||||||
|
|||||||
Reference in New Issue
Block a user