Merge pull request #2771 from techAPJ/patch-1
Don't show new topic indicator on New tab
This commit is contained in:
commit
9d9d93ad3c
|
@ -122,6 +122,7 @@ var controllerOpts = {
|
|||
showTable: Em.computed.or('hasTopics', 'topicTrackingState.hasIncoming'),
|
||||
allLoaded: Em.computed.empty('more_topics_url'),
|
||||
latest: Discourse.computed.endWith('filter', 'latest'),
|
||||
new: Discourse.computed.endWith('filter', 'new'),
|
||||
top: Em.computed.notEmpty('period'),
|
||||
yearly: Em.computed.equal('period', 'yearly'),
|
||||
monthly: Em.computed.equal('period', 'monthly'),
|
||||
|
|
|
@ -13,6 +13,7 @@ export default Ember.ObjectController.extend({
|
|||
|
||||
canStar: Em.computed.alias('controllers.discovery/topics.currentUser.id'),
|
||||
bulkSelectEnabled: Em.computed.alias('controllers.discovery/topics.bulkSelectEnabled'),
|
||||
showTopicPostBadges: Em.computed.not('controllers.discovery/topics.new'),
|
||||
|
||||
checked: function(key, value) {
|
||||
var selected = this.get('controllers.discovery/topics.selected'),
|
||||
|
@ -44,4 +45,3 @@ export default Ember.ObjectController.extend({
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
<td class='main-link clearfix' {{bind-attr colspan="titleColSpan"}}>
|
||||
{{topic-status topic=this.model}}
|
||||
{{topic-link this}}
|
||||
{{#if showTopicPostBadges}}
|
||||
{{topic-post-badges unread=unread newPosts=displayNewPosts unseen=unseen url=lastUnreadUrl}}
|
||||
{{/if}}
|
||||
|
||||
{{#if hasExcerpt}}
|
||||
<div class="topic-excerpt">
|
||||
|
|
Loading…
Reference in New Issue