mirror of
https://github.com/bitwarden/web
synced 2026-01-06 02:24:02 +00:00
24 lines
731 B
TypeScript
24 lines
731 B
TypeScript
import { Component, OnInit } from "@angular/core";
|
|
import { ActivatedRoute } from "@angular/router";
|
|
|
|
import { ProviderService } from "jslib-common/abstractions/provider.service";
|
|
import { Provider } from "jslib-common/models/domain/provider";
|
|
|
|
@Component({
|
|
selector: "provider-manage",
|
|
templateUrl: "manage.component.html",
|
|
})
|
|
export class ManageComponent implements OnInit {
|
|
provider: Provider;
|
|
accessEvents = false;
|
|
|
|
constructor(private route: ActivatedRoute, private providerService: ProviderService) {}
|
|
|
|
ngOnInit() {
|
|
this.route.parent.params.subscribe(async (params) => {
|
|
this.provider = await this.providerService.get(params.providerId);
|
|
this.accessEvents = this.provider.useEvents;
|
|
});
|
|
}
|
|
}
|