mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 18:53:29 +00:00
[Soft Delete] - Added trash and related functionality to web vault
This commit is contained in:
@@ -94,6 +94,7 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||
if (!this.organization.isAdmin) {
|
||||
return super.deleteCipher();
|
||||
}
|
||||
return this.apiService.deleteCipherAdmin(this.cipherId);
|
||||
return this.cipher.isDeleted ? this.apiService.deleteCipherAdmin(this.cipherId)
|
||||
: this.apiService.putDeleteCipherAdmin(this.cipherId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user