Browse Source

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

pull/2761/head
Jake Fink 4 years ago committed by GitHub
parent
commit
f57f97fcdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      apps/desktop/src/app/accounts/settings.component.ts
  2. 8
      apps/desktop/src/locales/en/messages.json

15
apps/desktop/src/app/accounts/settings.component.ts

@ -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"

8
apps/desktop/src/locales/en/messages.json

@ -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"
}, },

Loading…
Cancel
Save