Skip to content

Commit

Permalink
feat(modale): confirmation skip verification device on loggin
Browse files Browse the repository at this point in the history
  • Loading branch information
marc.sirisak committed Oct 24, 2024
1 parent 5fec88f commit 6844b11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,9 @@ export default class CompleteSecurity extends React.Component<IProps, IState> {
let skipButton;

if (!forceVerification && (phase === Phase.Intro || phase === Phase.ConfirmReset)) {
// :Tchap: cross-signing-ui - Condition to skip Phase.ConfirmSkip and its "Are you sure" modal after login for csss
const tchapOnSkipClick = phase === Phase.Intro ? this.props.onFinished : this.onSkipClick;
// end :Tchap:
skipButton = (
<AccessibleButton
// :tchap: cross-signing-ui - remove onClick={this.onSkipClick}
// add instead
onClick={tchapOnSkipClick}
// end :tchap:
onClick={this.onSkipClick}
className="mx_CompleteSecurity_skip"
aria-label={_t("encryption|verification|after_new_login|skip_verification")}
/>
Expand Down
4 changes: 4 additions & 0 deletions modules/tchap-translations/tchap_translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -877,5 +877,9 @@
"auth|proconnect|error_sso_inactive": {
"en": "ProConnect is disabled for your domain",
"fr": "ProConnect est désactivé pour votre domaine"
},
"encryption|verification|verification_skip_warning": {
"en": "Without verifying, you won't have access to all your messages and may appear as untrusted to others.",
"fr": "Sans vérification, vous n'aurez pas accès à tous vos messages et votre compte n'apparaitra pas comme fiable pour les autres utilisateurs"
}
}

0 comments on commit 6844b11

Please sign in to comment.