From e8ac2b561a35acab3903419e4cae75a8e5ec524b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 13 Aug 2018 16:38:21 -0400 Subject: [PATCH] apply filters on org vault --- src/app/organizations/vault/ciphers.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/organizations/vault/ciphers.component.ts b/src/app/organizations/vault/ciphers.component.ts index b8cc84ce79..39106167e3 100644 --- a/src/app/organizations/vault/ciphers.component.ts +++ b/src/app/organizations/vault/ciphers.component.ts @@ -78,10 +78,14 @@ export class CiphersComponent extends BaseCiphersComponent { return super.search(timeout); } this.searchPending = false; + let filteredCiphers = this.allCiphers; + if (this.filter != null) { + filteredCiphers = filteredCiphers.filter(this.filter); + } if (this.searchText == null || this.searchText.trim().length < 2) { - this.ciphers = this.allCiphers; + this.ciphers = filteredCiphers; } else { - this.ciphers = this.searchService.searchCiphersBasic(this.allCiphers, this.searchText); + this.ciphers = this.searchService.searchCiphersBasic(filteredCiphers, this.searchText); } }