Hide specific context menus when vault is locked

Feature name

Hide specific context menus when vault is locked.

Feature Description

I do not think it makes sense to show the autofill, copy-username and copy-password context menus when the vault is locked. You now need to click either one of these options when the vault is locked to click another context menu that tells you that the vault is locked / logged out. These 3 options could be hidden when the vault is locked and have the context menu that tells you that the vault is locked / logged out show instead.
After:
1_

Clients / Repos Affected

Web (extension).

Timeline to completion (estimate)

ETA: Q4/2021.

Commented on your PR Hide specific context menus when vault is locked by thijmver · Pull Request #2140 · bitwarden/browser · GitHub

If my mentioned feature wasn’t present (although not released yet, likely in November), then I’d agree that shortening the menu, could be a welcome addition.

1 Like

Closing this for now, further discussion can be done in the community forums post.

I agree that my code needs a change since it can’t execute the previous selected command because the related context menu can’t be clicked anymore if the vault is locked. However, the parentMenuItemId does seem to be the command the user selected and executing the command seems to work just fine as well.