mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
init function
This commit is contained in:
parent
aa0b274f8f
commit
a98a8bda9b
@ -132,6 +132,10 @@ export class AddEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
|
await this.init();
|
||||||
|
}
|
||||||
|
|
||||||
|
async init() {
|
||||||
const myEmail = await this.userService.getEmail();
|
const myEmail = await this.userService.getEmail();
|
||||||
this.ownershipOptions.push({ name: myEmail, value: null });
|
this.ownershipOptions.push({ name: myEmail, value: null });
|
||||||
const orgs = await this.userService.getAllOrganizations();
|
const orgs = await this.userService.getAllOrganizations();
|
||||||
|
Loading…
Reference in New Issue
Block a user