mirror of
https://github.com/bitwarden/web
synced 2025-12-12 22:33:23 +00:00
apply filters on org vault
This commit is contained in:
@@ -78,10 +78,14 @@ export class CiphersComponent extends BaseCiphersComponent {
|
|||||||
return super.search(timeout);
|
return super.search(timeout);
|
||||||
}
|
}
|
||||||
this.searchPending = false;
|
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) {
|
if (this.searchText == null || this.searchText.trim().length < 2) {
|
||||||
this.ciphers = this.allCiphers;
|
this.ciphers = filteredCiphers;
|
||||||
} else {
|
} else {
|
||||||
this.ciphers = this.searchService.searchCiphersBasic(this.allCiphers, this.searchText);
|
this.ciphers = this.searchService.searchCiphersBasic(filteredCiphers, this.searchText);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user