2021-07-21 11:32:27 +02:00
|
|
|
import { Component } from "@angular/core";
|
|
|
|
import { ActivatedRoute } from "@angular/router";
|
|
|
|
|
2022-06-14 17:10:53 +02:00
|
|
|
import { ProviderService } from "@bitwarden/common/abstractions/provider.service";
|
2021-07-21 11:32:27 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: "provider-settings",
|
|
|
|
templateUrl: "settings.component.html",
|
|
|
|
})
|
2022-08-26 18:09:28 +02:00
|
|
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
2021-07-21 11:32:27 +02:00
|
|
|
export class SettingsComponent {
|
2022-02-24 12:10:07 +01:00
|
|
|
constructor(private route: ActivatedRoute, private providerService: ProviderService) {}
|
2021-07-21 11:32:27 +02:00
|
|
|
|
|
|
|
ngOnInit() {
|
2022-08-26 18:09:28 +02:00
|
|
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil, rxjs/no-async-subscribe
|
2021-07-21 11:32:27 +02:00
|
|
|
this.route.parent.params.subscribe(async (params) => {
|
2022-02-24 12:10:07 +01:00
|
|
|
await this.providerService.get(params.providerId);
|
2021-07-21 11:32:27 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|