Skip to content

Commit

Permalink
Add title to privacy policy page
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Jun 3, 2024
1 parent 84f5bc0 commit 15e8989
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/pages/privacy/privacy.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {FooterColorService} from "../../services/footer-color.service";
import {KeyValuePipe} from "@angular/common";
import {NoSorterKeyValue} from "../../types/no-sorter-key-value";
import {ReplacePipe} from "../../pipes/replace.pipe";
import {TranslatorService} from "../../services/translator.service";
import {Title} from "@angular/platform-browser";

@Component({
selector: 'app-privacy',
Expand All @@ -27,11 +29,14 @@ export class PrivacyComponent implements OnInit {
constructor(
private readonly dataService: DataService,
private readonly footerColor: FooterColorService,
private readonly translator: TranslatorService,
private readonly titleService: Title,
) {
}

public async ngOnInit(): Promise<void> {
this.footerColor.dark.set(true);
this.titleService.setTitle(await toPromise(this.translator.get('privacy_policy')));
}

protected readonly NoSorterKeyValue = NoSorterKeyValue;
Expand Down

0 comments on commit 15e8989

Please sign in to comment.