1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 11:43:51 +00:00

[PM-31400] skip MP reprompt when archive/unarchive in footer (#18678)

This commit is contained in:
Jason Ng
2026-02-04 10:31:02 -05:00
committed by GitHub
parent 97c65b3c72
commit febb64605a

View File

@@ -229,12 +229,20 @@ export class ItemFooterComponent implements OnInit, OnChanges {
}
protected async archive() {
await this.archiveCipherUtilitiesService.archiveCipher(this.cipher);
/**
* When the Archive Button is used in the footer we can skip the reprompt since
* the user will have already passed the reprompt when they opened the item.
*/
await this.archiveCipherUtilitiesService.archiveCipher(this.cipher, true);
this.onArchiveToggle.emit();
}
protected async unarchive() {
await this.archiveCipherUtilitiesService.unarchiveCipher(this.cipher);
/**
* When the Unarchive Button is used in the footer we can skip the reprompt since
* the user will have already passed the reprompt when they opened the item.
*/
await this.archiveCipherUtilitiesService.unarchiveCipher(this.cipher, true);
this.onArchiveToggle.emit();
}