1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-04-07 18:57:06 +02:00

show error when trying to enable browser integration on desktop (#2754)

This commit is contained in:
Jake Fink 2022-05-31 10:10:34 -04:00 committed by GitHub
parent 2f72286f66
commit f57f97fcdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 6 deletions

View File

@ -367,7 +367,7 @@ export class SettingsComponent implements OnInit {
if (process.platform === "darwin" && !this.platformUtilsService.isMacAppStore()) { if (process.platform === "darwin" && !this.platformUtilsService.isMacAppStore()) {
await this.platformUtilsService.showDialog( await this.platformUtilsService.showDialog(
this.i18nService.t("browserIntegrationMasOnlyDesc"), this.i18nService.t("browserIntegrationMasOnlyDesc"),
this.i18nService.t("browserIntegrationMasOnlyTitle"), this.i18nService.t("browserIntegrationUnsupportedTitle"),
this.i18nService.t("ok"), this.i18nService.t("ok"),
null, null,
"warning" "warning"
@ -378,7 +378,18 @@ export class SettingsComponent implements OnInit {
} else if (isWindowsStore()) { } else if (isWindowsStore()) {
await this.platformUtilsService.showDialog( await this.platformUtilsService.showDialog(
this.i18nService.t("browserIntegrationWindowsStoreDesc"), this.i18nService.t("browserIntegrationWindowsStoreDesc"),
this.i18nService.t("browserIntegrationWindowsStoreTitle"), this.i18nService.t("browserIntegrationUnsupportedTitle"),
this.i18nService.t("ok"),
null,
"warning"
);
this.enableBrowserIntegration = false;
return;
} else if (process.platform == "linux") {
await this.platformUtilsService.showDialog(
this.i18nService.t("browserIntegrationLinuxDesc"),
this.i18nService.t("browserIntegrationUnsupportedTitle"),
this.i18nService.t("ok"), this.i18nService.t("ok"),
null, null,
"warning" "warning"

View File

@ -1518,18 +1518,18 @@
"enableBrowserIntegrationDesc": { "enableBrowserIntegrationDesc": {
"message": "Browser integration is used for biometrics in browser." "message": "Browser integration is used for biometrics in browser."
}, },
"browserIntegrationMasOnlyTitle": { "browserIntegrationUnsupportedTitle": {
"message": "Browser integration not supported" "message": "Browser integration not supported"
}, },
"browserIntegrationMasOnlyDesc": { "browserIntegrationMasOnlyDesc": {
"message": "Unfortunately browser integration is only supported in the Mac App Store version for now." "message": "Unfortunately browser integration is only supported in the Mac App Store version for now."
}, },
"browserIntegrationWindowsStoreTitle": {
"message": "Browser integration not supported"
},
"browserIntegrationWindowsStoreDesc": { "browserIntegrationWindowsStoreDesc": {
"message": "Unfortunately browser integration is currently not supported in the Windows Store version." "message": "Unfortunately browser integration is currently not supported in the Windows Store version."
}, },
"browserIntegrationLinuxDesc": {
"message": "Unfortunately browser integration is currently not supported in the linux version."
},
"enableBrowserIntegrationFingerprint": { "enableBrowserIntegrationFingerprint": {
"message": "Require verification for browser integration" "message": "Require verification for browser integration"
}, },