1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-06 05:28:51 +02:00

set search text before load

This commit is contained in:
Kyle Spearrin 2018-08-15 22:26:39 -04:00
parent 39c32b0e62
commit ea49d17c47

View File

@ -62,6 +62,7 @@ export class VaultComponent implements OnInit {
this.ciphersComponent.organization = this.organization;
this.route.queryParams.subscribe(async (qParams) => {
this.ciphersComponent.searchText = this.groupingsComponent.searchText = qParams.search;
if (!this.organization.isAdmin) {
await this.syncService.fullSync(false);
}
@ -84,7 +85,6 @@ export class VaultComponent implements OnInit {
}
}
this.ciphersComponent.searchText = this.groupingsComponent.searchText = qParams.search;
if (qParams.viewEvents != null) {
const cipher = this.ciphersComponent.ciphers.filter((c) => c.id === qParams.viewEvents);
if (cipher.length > 0) {