mirror of
https://github.com/bitwarden/browser
synced 2025-12-26 13:13:22 +00:00
* [deps] Autofill: Update prettier to v3 * prettier formatting updates --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
24 lines
710 B
TypeScript
24 lines
710 B
TypeScript
import { Component } from "@angular/core";
|
|
import { ActivatedRoute } from "@angular/router";
|
|
|
|
import { ProviderService } from "@bitwarden/common/admin-console/abstractions/provider.service";
|
|
|
|
@Component({
|
|
selector: "provider-settings",
|
|
templateUrl: "settings.component.html",
|
|
})
|
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
|
export class SettingsComponent {
|
|
constructor(
|
|
private route: ActivatedRoute,
|
|
private providerService: ProviderService,
|
|
) {}
|
|
|
|
ngOnInit() {
|
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil, rxjs/no-async-subscribe
|
|
this.route.parent.params.subscribe(async (params) => {
|
|
await this.providerService.get(params.providerId);
|
|
});
|
|
}
|
|
}
|