bitwarden-estensione-browser/src/app/organizations/settings/settings.component.ts

22 lines
641 B
TypeScript
Raw Normal View History

2018-07-16 18:42:49 +02:00
import { Component } from '@angular/core';
2018-07-18 23:10:26 +02:00
import { ActivatedRoute } from '@angular/router';
import { UserService } from 'jslib/abstractions/user.service';
2018-07-16 18:42:49 +02:00
@Component({
selector: 'app-org-settings',
templateUrl: 'settings.component.html',
})
2018-07-18 23:10:26 +02:00
export class SettingsComponent {
access2fa = false;
constructor(private route: ActivatedRoute, private userService: UserService) { }
ngOnInit() {
this.route.parent.params.subscribe(async (params) => {
const organization = await this.userService.getOrganization(params.organizationId);
this.access2fa = organization.use2fa;
});
}
}