mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ensures secondary menu of user notifications mobile nav reloads (#8716)
This commit is contained in:
parent
b1508a6f44
commit
ec1aeb8a55
@ -5,9 +5,13 @@ import {
|
|||||||
default as discourseComputed,
|
default as discourseComputed,
|
||||||
observes
|
observes
|
||||||
} from "discourse-common/utils/decorators";
|
} from "discourse-common/utils/decorators";
|
||||||
|
import { readOnly } from "@ember/object/computed";
|
||||||
|
import { inject as service } from "@ember/service";
|
||||||
|
|
||||||
export default Controller.extend({
|
export default Controller.extend({
|
||||||
application: inject(),
|
application: inject(),
|
||||||
|
router: service(),
|
||||||
|
currentPath: readOnly("router._router.currentPath"),
|
||||||
|
|
||||||
@observes("model.canLoadMore")
|
@observes("model.canLoadMore")
|
||||||
_showFooter() {
|
_showFooter() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{#d-section pageClass="user-notifications" class="user-secondary-navigation"}}
|
{{#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>
|
<li>
|
||||||
{{#link-to 'userNotifications.index'}}
|
{{#link-to 'userNotifications.index'}}
|
||||||
{{i18n 'user.filters.all'}}
|
{{i18n 'user.filters.all'}}
|
||||||
|
Loading…
Reference in New Issue
Block a user