1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02:00

init function

This commit is contained in:
Kyle Spearrin 2018-10-29 22:41:19 -04:00
parent aa0b274f8f
commit a98a8bda9b

View File

@ -132,6 +132,10 @@ export class AddEditComponent implements OnInit {
}
async ngOnInit() {
await this.init();
}
async init() {
const myEmail = await this.userService.getEmail();
this.ownershipOptions.push({ name: myEmail, value: null });
const orgs = await this.userService.getAllOrganizations();