FIX: Don't show `undefined` query params
This commit is contained in:
parent
4442ae1c8a
commit
87b4cd3323
|
@ -1,13 +1,8 @@
|
|||
Discourse.SiteMapController = Ember.ArrayController.extend(Discourse.HasCurrentUser, {
|
||||
itemController: "siteMapCategory",
|
||||
|
||||
showAdminLinks: function() {
|
||||
return this.get("currentUser.staff");
|
||||
}.property("currentUser.staff"),
|
||||
|
||||
flaggedPostsCount: function() {
|
||||
return this.get("currentUser.site_flagged_posts_count");
|
||||
}.property("currentUser.site_flagged_posts_count"),
|
||||
showAdminLinks: Em.computed.alias('currentUser.staff'),
|
||||
flaggedPostsCount: Em.computed.alias("currentUser.site_flagged_posts_count"),
|
||||
|
||||
faqUrl: function() {
|
||||
return Discourse.SiteSettings.faq_url ? Discourse.SiteSettings.faq_url : Discourse.getURL('/faq');
|
||||
|
|
|
@ -1 +1 @@
|
|||
{{#titledLinkTo "discovery.latest" titleKey="filters.latest.help" class="latest-topics-link"}}{{i18n filters.latest.title}}{{/titledLinkTo}}
|
||||
{{#titledLinkTo "discovery.latest" (query-params ascending="false" order="default") titleKey="filters.latest.help" class="latest-topics-link"}}{{i18n filters.latest.title}}{{/titledLinkTo}}
|
||||
|
|
Loading…
Reference in New Issue