mirror of
https://github.com/bitwarden/desktop.git
synced 2025-02-26 02:51:26 +01:00
Update i18n string and id for tray menu Lock item (#1334)
This commit is contained in:
parent
884615c23a
commit
659c9ea78d
@ -153,9 +153,9 @@ export class Main {
|
|||||||
this.menuMain.init();
|
this.menuMain.init();
|
||||||
await this.trayMain.init("Bitwarden", [
|
await this.trayMain.init("Bitwarden", [
|
||||||
{
|
{
|
||||||
label: this.i18nService.t("lockNow"),
|
label: this.i18nService.t("lockVault"),
|
||||||
enabled: false,
|
enabled: false,
|
||||||
id: "lockNow",
|
id: "lockVault",
|
||||||
click: () => this.messagingService.send("lockVault"),
|
click: () => this.messagingService.send("lockVault"),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
@ -99,10 +99,10 @@ export class MessagingMain {
|
|||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const lockNowTrayMenuItem = this.main.trayMain.contextMenu.getMenuItemById("lockNow");
|
const lockVaultTrayMenuItem = this.main.trayMain.contextMenu.getMenuItemById("lockVault");
|
||||||
const activeAccount = updateRequest.accounts[updateRequest.activeUserId];
|
const activeAccount = updateRequest.accounts[updateRequest.activeUserId];
|
||||||
if (lockNowTrayMenuItem != null && activeAccount != null) {
|
if (lockVaultTrayMenuItem != null && activeAccount != null) {
|
||||||
lockNowTrayMenuItem.enabled = activeAccount.isAuthenticated && !activeAccount.isLocked;
|
lockVaultTrayMenuItem.enabled = activeAccount.isAuthenticated && !activeAccount.isLocked;
|
||||||
}
|
}
|
||||||
this.main.trayMain.updateContextMenu();
|
this.main.trayMain.updateContextMenu();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user