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