mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Separate base and heading font site_settings (#10807)
Allows site administrators to pick different fonts for headings in the wizard and in their site settings. Also correctly displays the header logos in wizard previews.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Controller from "@ember/controller";
|
||||
import { dasherize } from "@ember/string";
|
||||
import discourseComputed from "discourse-common/utils/decorators";
|
||||
|
||||
export default Controller.extend({
|
||||
@@ -16,7 +17,9 @@ export default Controller.extend({
|
||||
return [];
|
||||
}
|
||||
|
||||
const fontField = fontsStep.get("fieldsById.font_previews");
|
||||
return fontField.choices.map((choice) => `font-${choice.data.class}`);
|
||||
const fontField = fontsStep.get("fieldsById.body_font");
|
||||
return fontField.choices.map(
|
||||
(choice) => `body-font-${dasherize(choice.id)}`
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user