From 097367a9f82cea49491e9060eabc8b091196da31 Mon Sep 17 00:00:00 2001 From: Rob H Date: Fri, 5 Sep 2014 16:28:08 +1000 Subject: [PATCH] Map modals for 'profile' enterprises do not display shopping options --- app/assets/javascripts/templates/partials/hub_actions.html.haml | 2 +- app/assets/javascripts/templates/partials/hub_details.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/templates/partials/hub_actions.html.haml b/app/assets/javascripts/templates/partials/hub_actions.html.haml index 42a8b8cd28..fa9ff4e183 100644 --- a/app/assets/javascripts/templates/partials/hub_actions.html.haml +++ b/app/assets/javascripts/templates/partials/hub_actions.html.haml @@ -1,4 +1,4 @@ -.row.pad-top{bindonce: true, "ng-if" => "enterprise.hubs.length > 0"} +.row.pad-top{bindonce: true, "ng-if" => "enterprise.hubs.length > 0 && enterprise.has_shopfront"} .cta-container.small-12.columns %label Shop for diff --git a/app/assets/javascripts/templates/partials/hub_details.html.haml b/app/assets/javascripts/templates/partials/hub_details.html.haml index 43e75dbbd2..27933cefcb 100644 --- a/app/assets/javascripts/templates/partials/hub_details.html.haml +++ b/app/assets/javascripts/templates/partials/hub_details.html.haml @@ -1,4 +1,4 @@ -.row.pad-top{bindonce: true} +.row.pad-top{bindonce: true, ng: { if: 'enterprise.has_shopfront' } } .cta-container.small-12.columns .row .small-4.columns