From de0f2e65a51642268d4ff0008da5e5428f802edc Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 22 Dec 2022 14:12:49 +0000 Subject: [PATCH 1/2] Don't show option to submit bug reports if no endpoint configured --- src/FullScreenView.tsx | 7 +++++-- src/room/OverflowMenu.tsx | 11 +++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/FullScreenView.tsx b/src/FullScreenView.tsx index 4d4739c4..11c5e2a3 100644 --- a/src/FullScreenView.tsx +++ b/src/FullScreenView.tsx @@ -9,6 +9,7 @@ import { useSubmitRageshake } from "./settings/submit-rageshake"; import { ErrorMessage } from "./input/Input"; import styles from "./FullScreenView.module.css"; import { translatedError, TranslatedError } from "./TranslatedError"; +import { Config } from "./config/Config"; interface FullScreenViewProps { className?: string; @@ -98,7 +99,7 @@ export function CrashView() { logsComponent =
{t("Thanks! We'll get right on it.")}
; } else if (sending) { logsComponent =
{t("Sending…")}
; - } else { + } else if (Config.get().rageshake?.submit_url) { logsComponent = (