1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-30 08:13:44 +00:00

[PM-29951] add archive flag check to vault-v3 desktop (#18660)

* add archive flag check to vault-v3 desktop, sync vault-v2 and vault-v3
This commit is contained in:
Jason Ng
2026-01-29 17:10:37 -05:00
committed by GitHub
parent 3ca35e19dc
commit 50427beba6

View File

@@ -564,7 +564,7 @@ export class VaultComponent implements OnInit, OnDestroy, CopyClickListener {
}
}
if (!cipher.organizationId && !cipher.isDeleted && !cipher.isArchived) {
if (userCanArchive && !cipher.isDeleted && !cipher.isArchived) {
menu.push({
label: this.i18nService.t("archiveVerb"),
click: async () => {
@@ -579,7 +579,7 @@ export class VaultComponent implements OnInit, OnDestroy, CopyClickListener {
});
}
if (cipher.isArchived) {
if (cipher.isArchived && !cipher.isDeleted) {
menu.push({
label: this.i18nService.t("unArchive"),
click: async () => {