mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: welcome topic title was not editable (#17950)
The topic title was not editable when composer was opened from the welcome topic banner.
This commit is contained in:
parent
3e010bc88c
commit
f788c1b3e4
@ -21,7 +21,10 @@ export default class WelcomeTopicBanner extends Component {
|
|||||||
})
|
})
|
||||||
.postStream.loadPostByPostNumber(1)
|
.postStream.loadPostByPostNumber(1)
|
||||||
.then((post) => {
|
.then((post) => {
|
||||||
post.topic.set("draft_key", Composer.EDIT);
|
post.topic.setProperties({
|
||||||
|
draft_key: Composer.EDIT,
|
||||||
|
"details.can_edit": true,
|
||||||
|
});
|
||||||
topicController.send("editPost", post);
|
topicController.send("editPost", post);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user