mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 18:44:25 +08:00
FIX: Restore automatic style preview in wizard (#17015)
Updating the homepage/style preview regressed in #16994.
This commit is contained in:
parent
5109ea0cf1
commit
54e42b124a
@ -4,6 +4,7 @@ import { Promise } from "rsvp";
|
||||
import getUrl from "discourse-common/lib/get-url";
|
||||
import { htmlSafe } from "@ember/template";
|
||||
import { scheduleOnce } from "@ember/runloop";
|
||||
import { observes } from "discourse-common/utils/decorators";
|
||||
|
||||
export const LOREM = `
|
||||
Lorem ipsum dolor sit amet,
|
||||
@ -54,6 +55,13 @@ export function createPreviewComponent(width, height, obj) {
|
||||
this.reload();
|
||||
},
|
||||
|
||||
@observes(
|
||||
"step.fieldsById.{color_scheme,body_font,heading_font,homepage_style}.value"
|
||||
)
|
||||
themeChanged() {
|
||||
this.triggerRepaint();
|
||||
},
|
||||
|
||||
images() {},
|
||||
|
||||
loadFonts() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user