DEV: Fix JS errors in styleguide (#11494)
Replaces latest topic list component with basic topic list (the former no longer exists). And fixes the display of the topic footer buttons.
This commit is contained in:
parent
31fe0e91ad
commit
2b2c840297
|
@ -1,3 +1,4 @@
|
||||||
|
import EmberObject from "@ember/object";
|
||||||
import NavItem from "discourse/models/nav-item";
|
import NavItem from "discourse/models/nav-item";
|
||||||
|
|
||||||
let topicId = 2000000;
|
let topicId = 2000000;
|
||||||
|
@ -114,9 +115,14 @@ export function createData(store) {
|
||||||
};
|
};
|
||||||
|
|
||||||
let topic = createTopic();
|
let topic = createTopic();
|
||||||
topic.set("category", categories[0]);
|
topic.setProperties({
|
||||||
topic.get("details").setProperties({
|
details: EmberObject.create({
|
||||||
can_create_post: true,
|
can_create_post: true,
|
||||||
|
can_invite_to: false,
|
||||||
|
can_delete: false,
|
||||||
|
can_close_topic: false,
|
||||||
|
}),
|
||||||
|
category: categories[0],
|
||||||
suggested_topics: [topic, topic, topic],
|
suggested_topics: [topic, topic, topic],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{{#styleguide-example title="topic-footer-buttons - logged in"}}
|
{{#styleguide-example title="topic-footer-buttons - logged in"}}
|
||||||
{{topic-footer-buttons
|
{{topic-footer-buttons topic=dummy.topic}}
|
||||||
canInviteTo=true
|
|
||||||
topic=dummy.topic}}
|
|
||||||
{{/styleguide-example}}
|
{{/styleguide-example}}
|
||||||
|
|
||||||
{{#styleguide-example title="topic-footer-buttons - anonymous"}}
|
{{#styleguide-example title="topic-footer-buttons - anonymous"}}
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
{{#styleguide-example title="basic-topic-list" class="half-size"}}
|
||||||
|
{{basic-topic-list topics=dummy.topics}}
|
||||||
|
{{/styleguide-example}}
|
|
@ -1,3 +0,0 @@
|
||||||
{{#styleguide-example title="latest-topic-list" class="half-size"}}
|
|
||||||
{{latest-topic-list topics=dummy.topics}}
|
|
||||||
{{/styleguide-example}}
|
|
|
@ -49,8 +49,8 @@ en:
|
||||||
title: "Topic Statuses"
|
title: "Topic Statuses"
|
||||||
topic_list:
|
topic_list:
|
||||||
title: "Topic List"
|
title: "Topic List"
|
||||||
latest_topic_list:
|
basic_topic_list:
|
||||||
title: "Latest Topic List"
|
title: "Basic Topic List"
|
||||||
footer_message:
|
footer_message:
|
||||||
title: "Footer Message"
|
title: "Footer Message"
|
||||||
signup_cta:
|
signup_cta:
|
||||||
|
|
Loading…
Reference in New Issue