Skip to content

Commit

Permalink
Update notification title
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-livefront committed Jan 15, 2025
1 parent 21a4309 commit 3f9865b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { Injectable } from "@angular/core";

import { DefaultLoginApprovalComponentService } from "@bitwarden/auth/angular";
Expand All @@ -15,11 +13,11 @@ export class DesktopLoginApprovalComponentService
super();
}

async showLoginRequestedAlertIfWindowNotVisible(email: string): Promise<void> {
async showLoginRequestedAlertIfWindowNotVisible(email?: string): Promise<void> {
const isVisible = await ipc.platform.isWindowVisible();
if (!isVisible) {
await ipc.auth.loginRequest(
this.i18nService.t("logInRequested"),
this.i18nService.t("accountAccessRequested"),
this.i18nService.t("accountAccessRequestedConfirmAccessAttempt", email),
this.i18nService.t("close"),
);
Expand Down
3 changes: 3 additions & 0 deletions apps/desktop/src/locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,9 @@
"logInRequested": {
"message": "Log in requested"
},
"accountAccessRequested": {
"message": "Account access requested"
},
"creatingAccountOn": {
"message": "Creating account on"
},
Expand Down

0 comments on commit 3f9865b

Please sign in to comment.