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