init function

This commit is contained in:
Kyle Spearrin 2018-10-29 22:41:19 -04:00
parent aa0b274f8f
commit a98a8bda9b
1 changed files with 4 additions and 0 deletions

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();