Skip to content

Commit 73ab3c9

Browse files
authored
Cross-signing change button label (#590)
* Cross-signing change button label * Put button Activate on this device in the advanced section of parameters > cross signing * Add Verify this device button to advanced section
1 parent bfb5dcf commit 73ab3c9

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

patches/activate-cross-signing-and-secure-storage-react/matrix-react-sdk+3.71.1.patch

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ index 575ff07..782cdd1 100644
6060
dis.dispatch({
6161
action: "start_registration",
6262
diff --git a/node_modules/matrix-react-sdk/src/components/views/settings/CrossSigningPanel.tsx b/node_modules/matrix-react-sdk/src/components/views/settings/CrossSigningPanel.tsx
63-
index e3f62d4..aba3ef4 100644
63+
index e3f62d4..d3967a0 100644
6464
--- a/node_modules/matrix-react-sdk/src/components/views/settings/CrossSigningPanel.tsx
6565
+++ b/node_modules/matrix-react-sdk/src/components/views/settings/CrossSigningPanel.tsx
6666
@@ -28,6 +28,7 @@ import ConfirmDestroyCrossSigningDialog from "../dialogs/security/ConfirmDestroy
@@ -71,7 +71,7 @@ index e3f62d4..aba3ef4 100644
7171

7272
interface IState {
7373
error?: Error;
74-
@@ -210,10 +211,16 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
74+
@@ -210,14 +211,21 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
7575
userSigningPrivateKeyCached;
7676

7777
const actions: JSX.Element[] = [];
@@ -89,7 +89,13 @@ index e3f62d4..aba3ef4 100644
8989
if (crossSigningPrivateKeysInStorage) {
9090
buttonCaption = _t("Verify this session");
9191
}
92-
@@ -225,7 +232,9 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
92+
- actions.push(
93+
+ // TCHAP: change actions.push(
94+
+ advancedActions.push(
95+
<AccessibleButton key="setup" kind="primary" onClick={this.onBootstrapClick}>
96+
{buttonCaption}
97+
</AccessibleButton>,
98+
@@ -225,7 +233,9 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
9399
}
94100

95101
if (keysExistAnywhere) {
@@ -100,7 +106,7 @@ index e3f62d4..aba3ef4 100644
100106
<AccessibleButton key="reset" kind="danger" onClick={this.resetCrossSigning}>
101107
{_t("Reset")}
102108
</AccessibleButton>,
103-
@@ -237,6 +246,19 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
109+
@@ -237,6 +247,19 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
104110
actionRow = <div className="mx_CrossSigningPanel_buttonRow">{actions}</div>;
105111
}
106112

@@ -120,7 +126,7 @@ index e3f62d4..aba3ef4 100644
120126
return (
121127
<div>
122128
{summarisedStatus}
123-
@@ -274,6 +296,7 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
129+
@@ -274,6 +297,7 @@ export default class CrossSigningPanel extends React.PureComponent<{}, IState> {
124130
</tr>
125131
</tbody>
126132
</table>

0 commit comments

Comments
 (0)