mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Unbreaking the groups page
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
Darkswarm.filter "groups", (Matcher)->
|
||||
(groups, text)->
|
||||
groups ||= []
|
||||
text ?= ""
|
||||
|
||||
groups.filter (group)=>
|
||||
Matcher.match([
|
||||
group.name, group.description, group.long_description
|
||||
], text) || group.enterprises.some (e)->
|
||||
Matcher.match [e.name], text
|
||||
@@ -20,7 +20,7 @@
|
||||
"ng-debounce" => "150",
|
||||
"ofn-disable-enter" => true}
|
||||
|
||||
.group{"ng-repeat" => "group in Groups.groups | filter:query | orderBy:order",
|
||||
.group{"ng-repeat" => "group in Groups.groups | groups:query | orderBy:order",
|
||||
name: "group{{group.id}}",
|
||||
id: "group{{group.id}}"}
|
||||
.row.pad-top{bindonce: true}
|
||||
|
||||
Reference in New Issue
Block a user