mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
init function
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user