mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 21:58:06 +08:00
FEATURE: allow disabling theme components (#7812)
This allows you to temporarily disable components without having to remove them from a theme. This feature is very handy when doing quick fix engineering.
This commit is contained in:
@ -71,11 +71,14 @@ componentTest("with children", {
|
||||
assert.deepEqual(
|
||||
find(".components")
|
||||
.text()
|
||||
.trim(),
|
||||
.trim()
|
||||
.split(",")
|
||||
.map(n => n.trim())
|
||||
.join(","),
|
||||
childrenList
|
||||
.splice(0, 4)
|
||||
.map(theme => theme.get("name"))
|
||||
.join(", "),
|
||||
.join(","),
|
||||
"lists the first 4 children"
|
||||
);
|
||||
assert.deepEqual(
|
||||
|
Reference in New Issue
Block a user