mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
FEATURE: when moving posts to existing topic auto-select single topic (#12064)
This commit is contained in:
parent
cc0d2b623f
commit
46e7d303b1
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user