refactor user menu item template locations
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
App.MenuItemListNeedsHelpView = Ember.View.extend Ember.ViewTargetActionSupport,
|
||||
action: 'listNeedsHelp'
|
||||
templateName: "menu_item_list_needs_help"
|
||||
templateName: "menu/list_needs_help"
|
||||
classNames: 'menu-list-item callout'
|
||||
classNameBindings: ['controller.list.needs_help:active']
|
||||
click: ->
|
||||
|
||||
@@ -10,6 +10,5 @@ App.MenuItemView = Ember.View.extend
|
||||
if @get('controller.currentPath') == @route then 'active' else ''
|
||||
).property('controller.currentPath')
|
||||
init: ->
|
||||
@templateName = "menu_item_#{@route}"
|
||||
@templateName = "menu/#{@route}"
|
||||
@_super()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user