From 14091cd10647953dec4caca393d908ad571ef394 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Sun, 29 Nov 2020 15:30:32 -0800 Subject: [PATCH] fix #6415 --- .../javascripts/templates/partials/hub_details.html.haml | 1 + .../javascripts/templates/partials/producer_details.html.haml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/templates/partials/hub_details.html.haml b/app/assets/javascripts/templates/partials/hub_details.html.haml index baa9055305..5d7354a23e 100644 --- a/app/assets/javascripts/templates/partials/hub_details.html.haml +++ b/app/assets/javascripts/templates/partials/hub_details.html.haml @@ -16,6 +16,7 @@ .columns.small-12 %a.cta-hub{"ng-href" => "{{::enterprise.path}}", "ng-attr-target" => "{{ embedded_layout ? '_blank' : undefined}}", "ng-class" => "{primary: enterprise.active, secondary: !enterprise.active}", + "ng-click" => "$close()", "ofn-change-hub" => "enterprise"} .hub-name{"ng-bind" => "::enterprise.name"} %span{"ng-if" => "::enterprise.active"} ({{'maps_open' | t}}) diff --git a/app/assets/javascripts/templates/partials/producer_details.html.haml b/app/assets/javascripts/templates/partials/producer_details.html.haml index a617598433..748a85f8ae 100644 --- a/app/assets/javascripts/templates/partials/producer_details.html.haml +++ b/app/assets/javascripts/templates/partials/producer_details.html.haml @@ -13,7 +13,8 @@ .columns.small-12 %a.cta-hub{"ng-repeat" => "hub in enterprise.hubs | filter:{id: '!'+enterprise.id} | orderBy:'-active'", "ng-href" => "{{::hub.path}}", "ofn-empties-cart" => "hub", - "ng-class" => "::{primary: hub.active, secondary: !hub.active}"} + "ng-class" => "::{primary: hub.active, secondary: !hub.active}", + "ng-click" => "$close()"} .hub-name{"ng-bind" => "::hub.name"} %span{"ng-if" => "::hub.active"} ({{'maps_open' | t}}) %span{"ng-if" => "::!hub.active"} ({{'maps_closed' | t}})