mirror of
https://github.com/flarum/core.git
synced 2025-07-30 13:10:24 +02:00
Update js/src/admin/components/AdminPage.tsx
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
@@ -245,7 +245,7 @@ export default class AdminPage extends Page {
|
||||
/**
|
||||
* Returns a function that fetches the setting from the `app` global.
|
||||
*/
|
||||
setting(key: string, fallback: string = ''): () => string {
|
||||
setting(key: string, fallback: string = ''): Stream<string> {
|
||||
this.settings[key] = this.settings[key] || Stream<string>(app.data.settings[key] || fallback);
|
||||
|
||||
return this.settings[key];
|
||||
|
Reference in New Issue
Block a user