mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 04:10:22 +08:00
Update the header action to be ES6
This commit is contained in:
parent
e503c3859a
commit
f85f38a887
@ -7,8 +7,8 @@ const TopicCategoryComponent = Ember.Component.extend({
|
||||
}.property('topic.is_warning', 'topic.isPrivateMessage'),
|
||||
|
||||
actions: {
|
||||
jumpToTopPost: function () {
|
||||
var topic = this.get('topic');
|
||||
jumpToTopPost() {
|
||||
const topic = this.get('topic');
|
||||
if (topic) {
|
||||
Discourse.URL.routeTo(topic.get('firstPostUrl'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user