mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +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.
|
* 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);
|
this.settings[key] = this.settings[key] || Stream<string>(app.data.settings[key] || fallback);
|
||||||
|
|
||||||
return this.settings[key];
|
return this.settings[key];
|
||||||
|
Reference in New Issue
Block a user