mirror of
https://github.com/bitwarden/browser
synced 2026-02-19 10:54:00 +00:00
[PM-31680] remove archive buttons from footer for edit view desktop (#18858)
This commit is contained in:
committed by
jaasen-livefront
parent
2abc60559e
commit
f21ba8905e
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user