mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
[desktop] Allow manual sync while locked (#6126)
Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
@@ -120,7 +120,7 @@ export class FileMenu extends FirstMenu implements IMenubarMenu {
|
|||||||
id: "syncVault",
|
id: "syncVault",
|
||||||
label: this.localize("syncVault"),
|
label: this.localize("syncVault"),
|
||||||
click: () => this.sendMessage("syncVault"),
|
click: () => this.sendMessage("syncVault"),
|
||||||
enabled: !this._isLocked,
|
enabled: this.hasAuthenticatedAccounts,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ export class FirstMenu {
|
|||||||
return this._accounts != null && Object.values(this._accounts).some((a) => a.isLockable);
|
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 {
|
protected get checkForUpdates(): MenuItemConstructorOptions {
|
||||||
return {
|
return {
|
||||||
id: "checkForUpdates",
|
id: "checkForUpdates",
|
||||||
|
|||||||
Reference in New Issue
Block a user