1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 03:33:54 +00:00

wire up search and view events query params

This commit is contained in:
Kyle Spearrin
2018-07-11 15:44:40 -04:00
parent 98d3b42728
commit 6dd21fe9e9
5 changed files with 36 additions and 12 deletions

View File

@@ -64,6 +64,16 @@ export class PeopleComponent implements OnInit {
this.accessEvents = organization.useEvents;
this.accessGroups = organization.useGroups;
await this.load();
this.route.queryParams.subscribe(async (qParams) => {
this.searchText = qParams.search;
if (qParams.viewEvents != null) {
const user = this.users.filter((u) => u.id === qParams.viewEvents);
if (user.length > 0) {
this.events(user[0]);
}
}
});
});
}