Design and style upgrades
This commit is contained in:
@@ -2,7 +2,10 @@ App.MenuItemView = Ember.View.extend
|
||||
classNames: 'menu-list-item'
|
||||
classNameBindings: ['active']
|
||||
click: ->
|
||||
@get('controller').transitionToRoute(@route)
|
||||
if @route_param
|
||||
@get('controller').transitionToRoute(@route, @route_param)
|
||||
else
|
||||
@get('controller').transitionToRoute(@route)
|
||||
active: (->
|
||||
if @get('controller.currentPath') == @route then 'active' else ''
|
||||
).property('controller.currentPath')
|
||||
|
||||
Reference in New Issue
Block a user