Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 330e5ef4 authored by Julie Thezenas's avatar Julie Thezenas
Browse files

test topic list 2

parent ce66904b
Branches main
No related tags found
No related merge requests found
...@@ -42,8 +42,17 @@ import { ...@@ -42,8 +42,17 @@ import {
classes.push(name); classes.push(name);
} }
} }
); },
@discourseComputed("topics")
latestTopic(topics) {
if (topics && topics.length) {
return topics[0];
}
};
return classes.join(" "); return classes.join(" ");
}, },
}); });
\ No newline at end of file
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
{{#d-button action=createTopic class="btn-primary btn"}}Post{{/d-button}} {{#d-button action=createTopic class="btn-primary btn"}}Post{{/d-button}}
</div> </div>
{{#conditional-loading-spinner condition=isLoading}} {{#conditional-loading-spinner condition=isLoading}}
{{latest-topic-list topics=topicList showPosters=false}} {{topic-list topics=topicList showPosters=false}}
{{/conditional-loading-spinner}} {{/conditional-loading-spinner}}
<a href="{{moreHref}}" class="btn btn-more">More</a> <a href="{{moreHref}}" class="btn btn-more">More</a>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment