1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 22:13:32 +00:00

[PM-31680] remove archive buttons from footer for edit view desktop (#18858)

This commit is contained in:
Jason Ng
2026-02-11 09:53:46 -05:00
committed by GitHub
parent 4852f8fc4f
commit d18ddd3480

View File

@@ -263,15 +263,12 @@ export class ItemFooterComponent implements OnInit, OnChanges {
this.userCanArchive = userCanArchive;
this.showArchiveButton =
cipherCanBeArchived &&
userCanArchive &&
(this.action === "view" || this.action === "edit") &&
!this.cipher.isArchived;
cipherCanBeArchived && userCanArchive && this.action === "view" && !this.cipher.isArchived;
// A user should always be able to unarchive an archived item
this.showUnarchiveButton =
hasArchiveFlagEnabled &&
(this.action === "view" || this.action === "edit") &&
this.action === "view" &&
this.cipher.isArchived &&
!this.cipher.isDeleted;
}