Skip to content

Commit

Permalink
FIX: ensures secondary menu of user notifications mobile nav reloads (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Jan 15, 2020
1 parent b1508a6 commit ec1aeb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -5,9 +5,13 @@ import {
default as discourseComputed,
observes
} from "discourse-common/utils/decorators";
import { readOnly } from "@ember/object/computed";
import { inject as service } from "@ember/service";

export default Controller.extend({
application: inject(),
router: service(),
currentPath: readOnly("router._router.currentPath"),

@observes("model.canLoadMore")
_showFooter() {
Expand Down
@@ -1,5 +1,5 @@
{{#d-section pageClass="user-notifications" class="user-secondary-navigation"}}
{{#mobile-nav class='notifications-nav' desktopClass='notification-list action-list nav-stacked' currentPath=router._router.currentPath}}
{{#mobile-nav class='notifications-nav' desktopClass='notification-list action-list nav-stacked' currentPath=currentPath}}
<li>
{{#link-to 'userNotifications.index'}}
{{i18n 'user.filters.all'}}
Expand Down

0 comments on commit ec1aeb8

Please sign in to comment.