A platform for community discussion. Free, open, simple.
FEATURE: when moving posts to existing topic auto-select single topic (#12064)
Arpit Jalan46e7d303b149
diff --git a/app/assets/javascripts/discourse/app/components/choose-topic.js b/app/assets/javascripts/discourse/app/components/choose-topic.jsindex ab0bc966bfc..5957bdb7d5b 100644--- a/app/assets/javascripts/discourse/app/components/choose-topic.js+++ b/app/assets/javascripts/discourse/app/components/choose-topic.js@@ -95,6 +95,9 @@ export default Component.extend({.mapBy("topic").filter((t) => t.id !== currentTopicId));+ if (this.topics.length === 1) {+ this.send("chooseTopic", this.topics[0]);+ }} else {this.setProperties({ topics: null, loading: false });}