1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-23 16:13:21 +00:00

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

* add archive flag check to vault-v3 desktop, sync vault-v2 and vault-v3

(cherry picked from commit 50427beba6)
This commit is contained in:
Jason Ng
2026-01-29 18:16:07 -05:00
committed by GitHub
parent 3416977dad
commit 90b15c1109

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