mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
FIX: incorrect label for top topics dropdown on mobile when filtering
This commit is contained in:
parent
dafc4ec906
commit
9e9ead0954
@ -13,7 +13,8 @@ export default Ember.Component.extend({
|
||||
},
|
||||
|
||||
@computed("filterMode", "navItems")
|
||||
selectedNavItem(filterMode, navItems){
|
||||
selectedNavItem(filterMode, navItems) {
|
||||
if (filterMode.indexOf("top/") === 0) { filterMode = "top"; }
|
||||
var item = navItems.find(i => i.get('filterMode').indexOf(filterMode) === 0);
|
||||
return item || navItems[0];
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user