mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 03:54:29 +08:00
add support for classNames binding in Navigation Item
This commit is contained in:
parent
e0d37c1f74
commit
76a217c4bc
@ -3,7 +3,7 @@ import { bufferedRender } from 'discourse-common/lib/buffered-render';
|
|||||||
|
|
||||||
export default Ember.Component.extend(bufferedRender({
|
export default Ember.Component.extend(bufferedRender({
|
||||||
tagName: 'li',
|
tagName: 'li',
|
||||||
classNameBindings: ['active', 'content.hasIcon:has-icon'],
|
classNameBindings: ['active', 'content.hasIcon:has-icon', 'content.classNames'],
|
||||||
attributeBindings: ['content.title:title'],
|
attributeBindings: ['content.title:title'],
|
||||||
hidden: Em.computed.not('content.visible'),
|
hidden: Em.computed.not('content.visible'),
|
||||||
rerenderTriggers: ['content.count'],
|
rerenderTriggers: ['content.count'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user