mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 20:23:38 +08:00
FIX: properly hide nav items
This commit is contained in:
parent
15945bcf15
commit
67efdaea40
|
@ -3,9 +3,9 @@ import { bufferedRender } from 'discourse-common/lib/buffered-render';
|
|||
|
||||
export default Ember.Component.extend(bufferedRender({
|
||||
tagName: 'li',
|
||||
classNameBindings: ['active', 'content.hasIcon:has-icon', 'content.classNames'],
|
||||
classNameBindings: ['active', 'content.hasIcon:has-icon', 'content.classNames', 'hidden'],
|
||||
attributeBindings: ['content.title:title'],
|
||||
hidden: Em.computed.not('content.visible'),
|
||||
hidden: false,
|
||||
rerenderTriggers: ['content.count'],
|
||||
|
||||
@computed("content.filterMode", "filterMode")
|
||||
|
@ -28,7 +28,7 @@ export default Ember.Component.extend(bufferedRender({
|
|||
}
|
||||
|
||||
if (!this.get('active') && this.currentUser && this.currentUser.trust_level > 1 && (content.get('name') === "new" || content.get('name') === "unread") && (content.get('count') < 1)) {
|
||||
return;
|
||||
this.set('hidden', true);
|
||||
}
|
||||
|
||||
buffer.push(`<a href='${href}'>`);
|
||||
|
|
Loading…
Reference in New Issue
Block a user