mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Update the header action to be ES6
This commit is contained in:
parent
e503c3859a
commit
f85f38a887
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue