mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
side menu partial does not require showItem defined
This commit is contained in:
@@ -12,6 +12,3 @@ angular.module("admin.enterprise_groups")
|
||||
]
|
||||
|
||||
$scope.select(0)
|
||||
|
||||
$scope.showItem = (item) ->
|
||||
true
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
%a.menu_item{ href: "", id: "{{ item.name.toLowerCase().replace(' ', '_') }}",
|
||||
ng: { repeat: '(index,item) in menu.items | filter:{visible:true}',
|
||||
click: 'select(index)',
|
||||
show: 'showItem(item)',
|
||||
show: 'showItem(item) !== false',
|
||||
class: '{ selected: item.selected}',
|
||||
'class-odd' => "'odd'",
|
||||
'class-even' => "'even'" } }
|
||||
|
||||
Reference in New Issue
Block a user