mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Back button mobile from user activity stream
This commit is contained in:
parent
ee129edf25
commit
3437513025
@ -1,7 +1,14 @@
|
|||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
|
|
||||||
beforeModel: function() {
|
beforeModel: function() {
|
||||||
this.transitionTo('userActivity');
|
// HACK: Something with the way the user card intercepts clicks seems to break how the
|
||||||
|
// transition into a user's activity works. This makes the back button work on mobile
|
||||||
|
// where there is no user card as well as desktop where there is.
|
||||||
|
if (Discourse.Mobile.mobileView) {
|
||||||
|
this.replaceWith('userActivity');
|
||||||
|
} else {
|
||||||
|
this.transitionTo('userActivity');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
{{topic-list
|
{{topic-list
|
||||||
showPosters=true
|
showPosters=true
|
||||||
currentUser=currentUser
|
currentUser=currentUser
|
||||||
hideCategory=hideCategory
|
hideCategory=model.hideCategory
|
||||||
topics=topics}}
|
topics=model.topics}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class='topic-list-bottom'>
|
<footer class='topic-list-bottom'>
|
||||||
{{conditional-loading-spinner condition=loadingMore}}
|
{{conditional-loading-spinner condition=model.loadingMore}}
|
||||||
{{#if allLoaded}}
|
{{#if allLoaded}}
|
||||||
{{#if showDismissRead}}
|
{{#if showDismissRead}}
|
||||||
<button title="{{i18n 'topics.bulk.dismiss_topics_tooltip'}}" id='dismiss-topics' class='btn dismiss-read' {{action "dismissRead" "topics"}}>{{i18n 'topics.bulk.dismiss_topics'}}</button>
|
<button title="{{i18n 'topics.bulk.dismiss_topics_tooltip'}}" id='dismiss-topics' class='btn dismiss-read' {{action "dismissRead" "topics"}}>{{i18n 'topics.bulk.dismiss_topics'}}</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user