Skip to content

Commit

Permalink
add safe mode button to emergency kit
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul authored and benthecarman committed Aug 8, 2024
1 parent 281d874 commit 261cf98
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/routes/settings/EmergencyKit.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {
BackLink,
Button,
DefaultMain,
DeleteEverything,
ExternalLink,
ImportExport,
InnerCard,
LargeHeader,
LoadingIndicator,
Logs,
Expand All @@ -22,6 +24,21 @@ function EmergencyStack() {
<ImportExport emergency />
<ToggleReportDiagnostics />
<Logs />
<InnerCard title={"Safe Mode"}>
<VStack>
<NiceP>
Disable certain wallet functionality to help with
debugging.
</NiceP>
<Button
onClick={() =>
(window.location.href = "/?safe_mode=true")
}
>
Enable Safe Mode
</Button>
</VStack>
</InnerCard>
<div class="flex flex-col gap-2 overflow-x-hidden rounded-xl bg-m-red p-4">
<SmallHeader>{i18n.t("settings.danger_zone")}</SmallHeader>
<DeleteEverything emergency />
Expand Down

0 comments on commit 261cf98

Please sign in to comment.