diff --git a/custom/icds_reports/static/icds_reports/js/spec/navigation.directive.spec.js b/custom/icds_reports/static/icds_reports/js/spec/navigation.directive.spec.js index 4d511ed1931a..df73965875df 100644 --- a/custom/icds_reports/static/icds_reports/js/spec/navigation.directive.spec.js +++ b/custom/icds_reports/static/icds_reports/js/spec/navigation.directive.spec.js @@ -11,9 +11,7 @@ describe('Navigation Directive', function () { var $rootScope, $compile, $httpBackend, controller; var myScope; - beforeEach(module('icdsApp', function ($provide) { - $provide.constant("haveAccessToFeatures", false); - })); + beforeEach(module('icdsApp')); beforeEach(inject(function (_$rootScope_, _$compile_, _$httpBackend_) { $compile = _$compile_; diff --git a/custom/icds_reports/static/js/directives/navigation/navigation.directive.js b/custom/icds_reports/static/js/directives/navigation/navigation.directive.js index f38fb993cd58..560fc24ceff6 100644 --- a/custom/icds_reports/static/js/directives/navigation/navigation.directive.js +++ b/custom/icds_reports/static/js/directives/navigation/navigation.directive.js @@ -2,11 +2,10 @@ var url = hqImport('hqwebapp/js/initial_page_data').reverse; -function NavigationController($window, $scope, $route, $routeParams, $location, haveAccessToFeatures) { +function NavigationController($window, $scope, $route, $routeParams, $location) { $scope.$route = $route; $scope.$location = $location; $scope.$routeParams = $routeParams; - $scope.haveAccessToFeatures = haveAccessToFeatures; var checkColapse = function(reports) { var path = _.filter(reports, function(report) { return $location.path().indexOf(report) !== -1; }); @@ -38,7 +37,7 @@ function NavigationController($window, $scope, $route, $routeParams, $location, }; } -NavigationController.$inject = ['$window', '$scope', '$route', '$routeParams', '$location', 'haveAccessToFeatures']; +NavigationController.$inject = ['$window', '$scope', '$route', '$routeParams', '$location']; window.angular.module('icdsApp').directive('navigation', function() { return { diff --git a/custom/icds_reports/templates/icds_reports/icds_app/navigation.directive.html b/custom/icds_reports/templates/icds_reports/icds_app/navigation.directive.html index a7a613724559..a4ac0aae88b9 100644 --- a/custom/icds_reports/templates/icds_reports/icds_app/navigation.directive.html +++ b/custom/icds_reports/templates/icds_reports/icds_app/navigation.directive.html @@ -137,7 +137,7 @@
{% trans "AWC Report" %}
-
  • +
  • {% trans "LS Dashboard" %}