Add call feed size debug info

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-01-30 20:43:21 +01:00
parent 546cc164fa
commit 807a6a8545
7 changed files with 61 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ import {
useShowInspector,
useOptInAnalytics,
canEnableSpatialAudio,
useShowCallFeedDebugInfo,
} from "./useSetting";
import { FieldRow, InputField } from "../input/Input";
import { Button } from "../button";
@@ -60,6 +61,8 @@ export const SettingsModal = (props: Props) => {
const [spatialAudio, setSpatialAudio] = useSpatialAudio();
const [showInspector, setShowInspector] = useShowInspector();
const [showCallFeedDebugInfo, setShowCallFeedDebugInfo] =
useShowCallFeedDebugInfo();
const [optInAnalytics, setOptInAnalytics] = useOptInAnalytics();
const [keyboardShortcuts, setKeyboardShortcuts] = useKeyboardShortcuts();
@@ -216,6 +219,18 @@ export const SettingsModal = (props: Props) => {
}
/>
</FieldRow>
<FieldRow>
<InputField
id="showCallFeedDebugInfo"
name="callFeedDebugInfo"
label={t("Show call feed debug info")}
type="checkbox"
checked={showCallFeedDebugInfo}
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
setShowCallFeedDebugInfo(e.target.checked)
}
/>
</FieldRow>
<FieldRow>
<Button onPress={downloadDebugLog}>
{t("Download debug logs")}