FIX: Topic title wasn't updating when navigating between topics

This commit is contained in:
Robin Ward 2016-04-25 12:31:15 -04:00
parent e72f63e311
commit dc014ac4aa
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D

View File

@ -37,6 +37,7 @@ const TopicView = Ember.View.extend(AddCategoryClass, AddArchetypeClass, Scrolli
// prevents scrolled from being called twice.
const enteredAt = this.get('controller.enteredAt');
if (enteredAt && (this.get('lastEnteredAt') !== enteredAt)) {
this._lastShowTopic = null;
this.scrolled();
this.set('lastEnteredAt', enteredAt);
}