-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add button, and dialog when clicked. Why does it ask for password?
- Loading branch information
1 parent
149c567
commit 6b74e81
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
patches/add-enable-secure-backup-in-onboarding-steps/matrix-react-sdk+3.81.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
diff --git a/node_modules/matrix-react-sdk/src/hooks/useUserOnboardingTasks.ts b/node_modules/matrix-react-sdk/src/hooks/useUserOnboardingTasks.ts | ||
index 43e819c..82ec3e5 100644 | ||
--- a/node_modules/matrix-react-sdk/src/hooks/useUserOnboardingTasks.ts | ||
+++ b/node_modules/matrix-react-sdk/src/hooks/useUserOnboardingTasks.ts | ||
@@ -29,6 +29,7 @@ import SdkConfig from "../SdkConfig"; | ||
import { UseCase } from "../settings/enums/UseCase"; | ||
import { useSettingValue } from "./useSettings"; | ||
import { UserOnboardingContext } from "./useUserOnboardingContext"; | ||
+import { accessSecretStorage } from "../SecurityManager"; | ||
|
||
interface UserOnboardingTask { | ||
id: string; | ||
@@ -93,6 +94,20 @@ const tasks: UserOnboardingTask[] = [ | ||
onClick: onClickStartDm, | ||
}, | ||
}, | ||
+ { // :TCHAP: | ||
+ id: "setup-secure-backup", | ||
+ title: _t("Sauvegardez vos messages automatiquement"), | ||
+ description: _t("Vous pourrez les récupérez sur n'importe quel appareil à l'aide du Code de Récupération."), | ||
+ completed: (ctx: UserOnboardingContext) => { | ||
+ | ||
+ }, // todo | ||
+ action: { | ||
+ label: _t("Activer la sauvegarde automatique"), | ||
+ onClick: (ev: ButtonEvent) => { | ||
+ accessSecretStorage(); | ||
+ }, | ||
+ }, | ||
+ }, // end :TCHAP: | ||
{ | ||
id: "download-apps", | ||
title: () => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters