diff --git a/app/assets/javascripts/admin/controllers/enterprises_dashboard.js.coffee b/app/assets/javascripts/admin/controllers/enterprises_dashboard_controller.js.coffee similarity index 53% rename from app/assets/javascripts/admin/controllers/enterprises_dashboard.js.coffee rename to app/assets/javascripts/admin/controllers/enterprises_dashboard_controller.js.coffee index b506c69ecd..b9584b74cc 100644 --- a/app/assets/javascripts/admin/controllers/enterprises_dashboard.js.coffee +++ b/app/assets/javascripts/admin/controllers/enterprises_dashboard_controller.js.coffee @@ -1,4 +1,4 @@ -Admin.controller "enterprisesDashboard", [ +Admin.controller "enterprisesDashboardCtrl", [ "$scope" ($scope) -> $scope.activeTab = "hubs" diff --git a/app/views/spree/admin/overview/_enterprises.html.haml b/app/views/spree/admin/overview/_enterprises.html.haml index d8e7b54cb7..85dc93c2ee 100644 --- a/app/views/spree/admin/overview/_enterprises.html.haml +++ b/app/views/spree/admin/overview/_enterprises.html.haml @@ -1,4 +1,4 @@ -%div.dashboard_item.sixteen.columns.alpha#enterprises{ 'ng-app' => 'ofn.admin', 'ng-controller' => "enterprisesDashboard" } +%div.dashboard_item.sixteen.columns.alpha#enterprises{ 'ng-app' => 'ofn.admin', 'ng-controller' => "enterprisesDashboardCtrl" } %div.header.sixteen.columns.alpha{ :class => "#{@enterprises.count > 0 ? "" : "red"}"} %h3.thirteen.columns.alpha My Enterprises - if @enterprises.any?