Skip to content

Commit

Permalink
fix: Set the default option to NO in the not trusted certificate dial…
Browse files Browse the repository at this point in the history
…og (#2916)

* improve not trusted certificate message

* make NO the default to not trusted certificates dialog
  • Loading branch information
jeanfbrito authored Jul 12, 2024
1 parent 8766c32 commit 2d39379
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"certificateError": {
"title": "Certificate error",
"message": "Do you trust certificate from \"{{- issuerName}}\"?",
"message": "Do you trust certificate from \"{{- issuerName}}\"? Only click 'Yes' if you really trust this certificate. If you are unsure, contact your IT or security team before clicking on 'Yes'.",
"yes": "Yes",
"no": "No"
},
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/pt-BR.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"certificateError": {
"title": "Erro de Certificado",
"message": "Você confia no certificado de \"{{- issuerName}}\"?",
"message": "Você confia no certificado de \"{{- issuerName}}\"? Clique em 'Sim' apenas se você realmente confiar neste certificado. Se estiver em dúvida, entre em contato com sua equipe de TI ou segurança antes de clicar em 'Sim'.",
"yes": "Sim",
"no": "Não"
},
Expand Down
1 change: 1 addition & 0 deletions src/ui/main/dialogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const askForCertificateTrust = async (
t('dialog.certificateError.no'),
],
cancelId: 1,
defaultId: 1,
}
);

Expand Down

0 comments on commit 2d39379

Please sign in to comment.