mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
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";
|
||||
|
||||
let topicId = 2000000;
|
||||
@ -114,9 +115,14 @@ export function createData(store) {
|
||||
};
|
||||
|
||||
let topic = createTopic();
|
||||
topic.set("category", categories[0]);
|
||||
topic.get("details").setProperties({
|
||||
can_create_post: true,
|
||||
topic.setProperties({
|
||||
details: EmberObject.create({
|
||||
can_create_post: true,
|
||||
can_invite_to: false,
|
||||
can_delete: false,
|
||||
can_close_topic: false,
|
||||
}),
|
||||
category: categories[0],
|
||||
suggested_topics: [topic, topic, topic],
|
||||
});
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
{{#styleguide-example title="topic-footer-buttons - logged in"}}
|
||||
{{topic-footer-buttons
|
||||
canInviteTo=true
|
||||
topic=dummy.topic}}
|
||||
{{topic-footer-buttons topic=dummy.topic}}
|
||||
{{/styleguide-example}}
|
||||
|
||||
{{#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"
|
||||
topic_list:
|
||||
title: "Topic List"
|
||||
latest_topic_list:
|
||||
title: "Latest Topic List"
|
||||
basic_topic_list:
|
||||
title: "Basic Topic List"
|
||||
footer_message:
|
||||
title: "Footer Message"
|
||||
signup_cta:
|
||||
|
Loading…
x
Reference in New Issue
Block a user