Commit 7f3803489b12fe16d9eabaa2e3afcd0ff0539deb
Exists in
master
and in
4 other branches
Merge branch 'master' into staging
Showing
2 changed files
with
9 additions
and
6 deletions
Show diff stats
src/app/components/category-list/category-list.directive.js
... | ... | @@ -28,11 +28,14 @@ |
28 | 28 | |
29 | 29 | CategoryListController.prototype.init = function() { |
30 | 30 | var vm = this; |
31 | + | |
32 | + vm.pathUrl = vm.$location.path(); | |
33 | + console.log("--------------",vm.pathUrl); | |
31 | 34 | |
32 | - vm.showCloseBtn = null; | |
35 | + vm.showCloseBtn = true; | |
33 | 36 | |
34 | - // Disable button close of page ranking | |
35 | - if(vm.$location.path() == "/ranking"){ | |
37 | + // Disable button remove of page ranking | |
38 | + if(vm.pathUrl=="/ranking"){ | |
36 | 39 | vm.showCloseBtn = false; |
37 | 40 | } |
38 | 41 | |
... | ... | @@ -103,4 +106,4 @@ |
103 | 106 | return directive; |
104 | 107 | } |
105 | 108 | |
106 | 109 | -})(); |
110 | +})(); | |
107 | 111 | \ No newline at end of file | ... | ... |
src/app/components/category-list/category-list.html
... | ... | @@ -16,11 +16,11 @@ |
16 | 16 | <span class="category-list--icon icon" aria-hidden="true" ng-class="'icon-tema-' + category.slug + '-small'"></span> |
17 | 17 | <span class="category-list--label">{{::category.name}}</span> |
18 | 18 | <span class="category-list--icon--right glyphicon glyphicon-chevron-right hidden-xs" ng-hide="vm.selectedCategory.slug === category.slug"></span> |
19 | - <span ng-if="showCloseBtn" class="category-list--icon--right glyphicon glyphicon-remove hidden-xs" ng-show="vm.selectedCategory.slug === category.slug"></span> | |
19 | + <span ng-if="vm.showCloseBtn" class="category-list--icon--right glyphicon glyphicon-remove hidden-xs" ng-show="vm.selectedCategory.slug === category.slug"></span> | |
20 | 20 | <div ng-if="category.archived" class="category-list--icon-archived"> |
21 | 21 | <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> |
22 | 22 | </div> |
23 | 23 | </button> |
24 | 24 | </div> |
25 | 25 | </nav> |
26 | 26 | -</div> |
27 | +</div> | |
27 | 28 | \ No newline at end of file | ... | ... |