FIX: the tags_sort_alphabetically setting applies to the tags list page too

This commit is contained in:
Neil Lalonde 2016-05-09 11:47:30 -04:00
parent 03605f1b01
commit bc0b487cd7
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,13 @@ export default Discourse.Route.extend({
return I18n.t("tagging.tags");
},
setupController(controller, model) {
this.controllerFor('tags.index').setProperties({
model,
sortProperties: this.siteSettings.tags_sort_alphabetically ? ['id'] : ['count:desc', 'id']
});
},
actions: {
didTransition() {
this.controllerFor("application").set("showFooter", true);