Remove unrequired functions, add has_hub_listing

This commit is contained in:
Rob Harrington
2014-09-25 17:02:18 +10:00
parent cbc8a62686
commit 1e31dd88ee
5 changed files with 17 additions and 21 deletions

View File

@@ -4,4 +4,4 @@ Darkswarm.filter 'showProfiles', ()->
show_profiles ?= true
enterprises.filter (enterprise)=>
show_profiles or not enterprise.is_profile
show_profiles or enterprise.has_shopfront

View File

@@ -2,7 +2,7 @@ Darkswarm.factory 'Hubs', ($filter, Enterprises, visibleFilter) ->
new class Hubs
constructor: ->
@hubs = @order Enterprises.enterprises.filter (hub)->
hub.is_distributor
hub.has_hub_listing
@visible = visibleFilter @hubs
order: (hubs)->