mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Profile hubs don't show up in hubs list
This commit is contained in:
@@ -2,7 +2,7 @@ Darkswarm.factory 'Hubs', ($filter, Enterprises, visibleFilter) ->
|
||||
new class Hubs
|
||||
constructor: ->
|
||||
@hubs = @order Enterprises.enterprises.filter (hub)->
|
||||
hub.is_distributor
|
||||
hub.is_distributor && hub.has_shopfront
|
||||
@visible = visibleFilter @hubs
|
||||
|
||||
order: (hubs)->
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
.row.active_table_row{"ng-click" => "toggle()", "ng-class" => "{'closed' : !open()}", bindonce: true}
|
||||
.columns.small-12.medium-6.large-5.skinny-head
|
||||
%a.hub{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"}
|
||||
%i{ ng: { class: "{'ofn-i_063-hub': hub.can_aggregate, 'ofn-i_059-producer': !hub.can_aggregate}" } }
|
||||
%i{ ng: { class: "{ 'ofn-i_063-hub': hub.can_aggregate && hub.has_shopfront,
|
||||
'ofn-i_059-producer': !hub.can_aggregate && hub.has_shopfront,
|
||||
'ofn-i_060-producer-reversed': !hub.can_aggregate && !hub.has_shopfront,
|
||||
'ofn-i_064-hub-reversed': hub.can_aggregate && !hub.has_shopfront }" } }
|
||||
/ %i.ofn-i_063-hub
|
||||
%span.margin-top.hub-name-listing {{ hub.name | truncate:40}}
|
||||
.columns.small-4.medium-2.large-2
|
||||
@@ -12,7 +15,7 @@
|
||||
.columns.small-6.medium-3.large-4.text-right{"bo-if" => "hub.active"}
|
||||
%a.hub.open_closed{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"}
|
||||
%i.ofn-i_033-open-sign
|
||||
%span.margin-top {{ hub.orders_close_at | sensible_timeframe }}
|
||||
%span.margin-top {{ hub.orders_close_at | sensible_timeframe }}
|
||||
|
||||
.columns.small-6.medium-3.large-4.text-right{"bo-if" => "!hub.active"}
|
||||
%a.hub.open_closed{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"}
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
|
||||
%a.button.secondary.tiny.filterbtn.disabled{"ng-show" => "FilterSelectorsService.selectors.length == 0"}
|
||||
No filters
|
||||
.small-12.medium-6.columns.text-right
|
||||
%input{type: "checkbox", name: "profile"}><
|
||||
%label Show profiles
|
||||
-# .small-12.medium-6.columns.text-right
|
||||
-# %input{type: "checkbox", name: "profile"}><
|
||||
-# %label Show profiles
|
||||
Reference in New Issue
Block a user