diff --git a/src/app/app.component.html b/src/app/app.component.html index 3e7e09fe..1c64f0d8 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -101,10 +101,10 @@

{{ aboutBody }}

- - + + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5ace3b7e..acd79ead 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -68,12 +68,9 @@ export class AppComponent implements OnInit { public aboutBody = this.Config.about?.body || 'HobbyFarm is lovingly crafted by the HobbyFarm team'; - public buttons = this.Config.about?.buttons || [ - { - title: 'Hobbyfarm Project', - url: 'https://github.com/hobbyfarm/hobbyfarm', - }, - ]; + public buttons = { + 'Hobbyfarm Project': 'https://github.com/hobbyfarm/hobbyfarm', + }; public themes = themes; public motd = ''; @@ -199,6 +196,12 @@ export class AppComponent implements OnInit { .subscribe((typedInput: TypedInput) => { this.motd = typedInput?.value ?? ''; }); + + this.typedSettingsService + .get('user-ui', 'aboutmodal-buttons') + .subscribe((typedInput: TypedInput) => { + this.buttons = typedInput?.value ?? this.buttons; + }); } private processToken(token: string) {