mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
[PM-8831] Hide trashed items from new vault popup lists (#9633)
This commit is contained in:
@@ -2,10 +2,10 @@ import { Injectable } from "@angular/core";
|
|||||||
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
||||||
import { FormBuilder } from "@angular/forms";
|
import { FormBuilder } from "@angular/forms";
|
||||||
import {
|
import {
|
||||||
Observable,
|
|
||||||
combineLatest,
|
combineLatest,
|
||||||
distinctUntilChanged,
|
distinctUntilChanged,
|
||||||
map,
|
map,
|
||||||
|
Observable,
|
||||||
startWith,
|
startWith,
|
||||||
switchMap,
|
switchMap,
|
||||||
tap,
|
tap,
|
||||||
@@ -104,6 +104,11 @@ export class VaultPopupListFiltersService {
|
|||||||
map(
|
map(
|
||||||
(filters) => (ciphers: CipherView[]) =>
|
(filters) => (ciphers: CipherView[]) =>
|
||||||
ciphers.filter((cipher) => {
|
ciphers.filter((cipher) => {
|
||||||
|
// Vault popup lists never shows deleted ciphers
|
||||||
|
if (cipher.isDeleted) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (filters.cipherType !== null && cipher.type !== filters.cipherType) {
|
if (filters.cipherType !== null && cipher.type !== filters.cipherType) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user