1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-19 10:54:00 +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 jaasen-livefront
parent 8e1042e333
commit f05c932424

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 () => {