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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user