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'),
actions: {
jumpToTopPost: function () {
var topic = this.get('topic');
jumpToTopPost() {
const topic = this.get('topic');
if (topic) {
Discourse.URL.routeTo(topic.get('firstPostUrl'));
}