mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-30 11:02:16 +00:00
24 lines
749 B
TypeScript
24 lines
749 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { PrivacyPolicy } from 'src/app/proto/generated/zitadel/policy_pb';
|
|
import { GrpcAuthService } from 'src/app/services/grpc-auth.service';
|
|
import { faXTwitter } from '@fortawesome/free-brands-svg-icons';
|
|
|
|
@Component({
|
|
selector: 'cnsl-footer',
|
|
templateUrl: './footer.component.html',
|
|
styleUrls: ['./footer.component.scss'],
|
|
})
|
|
export class FooterComponent implements OnInit {
|
|
public policy?: PrivacyPolicy.AsObject;
|
|
public faXTwitter = faXTwitter;
|
|
constructor(public authService: GrpcAuthService) {}
|
|
|
|
ngOnInit(): void {
|
|
this.authService.getMyPrivacyPolicy().then((policyResp) => {
|
|
if (policyResp.policy) {
|
|
this.policy = policyResp.policy;
|
|
}
|
|
});
|
|
}
|
|
}
|