diff --git a/src/app/app.component.html b/src/app/app.component.html
index 9626c947..4203b3a9 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -49,6 +49,14 @@
About
+
+ {{ privacyPolicyLinkName }}
+
Logout
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index acd79ead..d9100083 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -72,6 +72,9 @@ export class AppComponent implements OnInit {
'Hobbyfarm Project': 'https://github.com/hobbyfarm/hobbyfarm',
};
+ public privacyPolicyLink = '';
+ public privacyPolicyLinkName = '';
+
public themes = themes;
public motd = '';
@@ -202,6 +205,16 @@ export class AppComponent implements OnInit {
.subscribe((typedInput: TypedInput) => {
this.buttons = typedInput?.value ?? this.buttons;
});
+
+ this.typedSettingsService
+ .list('public')
+ .subscribe((typedInputs: Map) => {
+ this.privacyPolicyLink =
+ typedInputs.get('registration-privacy-policy-link')?.value ?? '';
+ this.privacyPolicyLinkName =
+ typedInputs.get('registration-privacy-policy-linkname')?.value ??
+ 'Privacy Policy';
+ });
}
private processToken(token: string) {