discourse/app/assets/javascripts/discourse/routes/about.js.es6
Robin Ward 5fc150e057 A mucher saner API for updating the title of routes, even when nested.
Properly sends the title of the page to google analytics
2014-10-09 14:55:29 -04:00

12 lines
244 B
JavaScript

export default Discourse.Route.extend({
model: function() {
return Discourse.ajax("/about.json").then(function(result) {
return result.about;
});
},
titleToken: function() {
return I18n.t('about.simple_title');
}
});