1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-23 03:22:50 +02:00

[desktop] Allow manual sync while locked (#6126)

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
David Torosyan 2024-09-18 08:57:32 -07:00 committed by GitHub
parent 727fbb6731
commit 2d7fb035d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export class FileMenu extends FirstMenu implements IMenubarMenu {
id: "syncVault",
label: this.localize("syncVault"),
click: () => this.sendMessage("syncVault"),
enabled: !this._isLocked,
enabled: this.hasAuthenticatedAccounts,
};
}

View File

@ -27,6 +27,10 @@ export class FirstMenu {
return this._accounts != null && Object.values(this._accounts).some((a) => a.isLockable);
}
protected get hasAuthenticatedAccounts(): boolean {
return this._accounts != null && Object.values(this._accounts).some((a) => a.isAuthenticated);
}
protected get checkForUpdates(): MenuItemConstructorOptions {
return {
id: "checkForUpdates",