init function
This commit is contained in:
parent
aa0b274f8f
commit
a98a8bda9b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue