From bc0b487cd77b2ee4a8406da3532c8c9dc69a7ebf Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 9 May 2016 11:47:30 -0400 Subject: [PATCH] FIX: the tags_sort_alphabetically setting applies to the tags list page too --- app/assets/javascripts/discourse/routes/tags-index.js.es6 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/discourse/routes/tags-index.js.es6 b/app/assets/javascripts/discourse/routes/tags-index.js.es6 index 7fbd3d529e4..b6514ef278d 100644 --- a/app/assets/javascripts/discourse/routes/tags-index.js.es6 +++ b/app/assets/javascripts/discourse/routes/tags-index.js.es6 @@ -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);