This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/app
David Taylor 1844bde57c
FIX: Allow mobile-nav to work without loading transitions (#12184)
Previously, the `{{mobile-nav}}` component required a `currentRouteName` property, passed from the router service. It would observe changes in this property, and update the UI accordingly.

If we change between routes which have the same `currentRouteName` (e.g. two different group message inboxes), then the `currentRouteName` does not change and does not trigger the observer. Currently in core, we are relying on the fact that currentRouteName temporarily enters a `.loading` substate during a transition. This will change when we remove the loading substate in the near future.

This commit refactors `{{mobile-nav}}` to inject the router directly, and use the `routeDidChange` event instead of an observer. The change is backwards compatible, but plugins passing the old `currentPath` property will be shown a deprecation notice.
2021-02-23 11:16:40 +00:00
..
adapters DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
components FIX: Allow mobile-nav to work without loading transitions (#12184) 2021-02-23 11:16:40 +00:00
controllers FIX: Allow mobile-nav to work without loading transitions (#12184) 2021-02-23 11:16:40 +00:00
helpers Login signup zazz (#11957) 2021-02-10 14:53:18 -06:00
initializers A11Y: makes edit username and avatar accessible (#12162) 2021-02-22 12:10:44 +01:00
lib FIX: Avoid Safari service worker error on back navigation (#12171) 2021-02-22 14:11:20 -05:00
mixins Quite a few Ember-CLI / Upgrade related changes (#11867) 2021-01-29 10:19:54 -05:00
models FIX: Dismiss new with better migration (#12062) 2021-02-15 08:50:33 +11:00
pre-initializers DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00
raw-views FIX: Show all topic statuses on full page search. 2020-12-23 10:30:35 +08:00
routes FIX: Clean up topic-timer-info CSS classes, add edit button, and improve UI (#12080) 2021-02-16 12:07:30 +10:00
services Quite a few Ember-CLI / Upgrade related changes (#11867) 2021-01-29 10:19:54 -05:00
styles DEV: Migrate to Ember CLI (#11932) 2021-02-03 14:22:20 -05:00
templates FIX: Allow mobile-nav to work without loading transitions (#12184) 2021-02-23 11:16:40 +00:00
widgets A11Y: ensures avatar image in site header has alt attribute (#12161) 2021-02-22 11:09:18 +01:00
app.js DEV: Sync up more Ember CLI features (#11790) 2021-01-21 15:55:39 -05:00
index.html Sync up master with Ember CLI branch where possible (#11707) 2021-01-14 12:52:51 -05:00
mapping-router.js DEV: prettier 2.2.1 (#11862) 2021-01-27 12:39:20 +01:00