Profile hubs don't show up in hubs list

This commit is contained in:
Rob H
2014-09-05 16:18:25 +10:00
parent 233532a85f
commit 428e4c63d4
3 changed files with 9 additions and 6 deletions

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.is_distributor && hub.has_shopfront
@visible = visibleFilter @hubs
order: (hubs)->

View File

@@ -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"}

View File

@@ -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