1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-06-26 10:35:48 +02:00
bitwarden-browser/bitwarden_license/bit-web/src/app/providers/settings/settings.component.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
683 B
TypeScript
Raw Normal View History

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";
@Component({
selector: "provider-settings",
templateUrl: "settings.component.html",
})
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
export class SettingsComponent {
2022-02-24 12:10:07 +01:00
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) => {
2022-02-24 12:10:07 +01:00
await this.providerService.get(params.providerId);
});
}
}