Update the header action to be ES6

This commit is contained in:
Robin Ward 2015-02-19 14:58:02 -05:00
parent e503c3859a
commit f85f38a887

View file

@ -7,8 +7,8 @@ const TopicCategoryComponent = Ember.Component.extend({
}.property('topic.is_warning', 'topic.isPrivateMessage'), }.property('topic.is_warning', 'topic.isPrivateMessage'),
actions: { actions: {
jumpToTopPost: function () { jumpToTopPost() {
var topic = this.get('topic'); const topic = this.get('topic');
if (topic) { if (topic) {
Discourse.URL.routeTo(topic.get('firstPostUrl')); Discourse.URL.routeTo(topic.get('firstPostUrl'));
} }