diff --git a/js/app/controllers/credential.js b/js/app/controllers/credential.js index 8289271b..03d83f92 100644 --- a/js/app/controllers/credential.js +++ b/js/app/controllers/credential.js @@ -103,11 +103,10 @@ angular.module('passmanApp') }; $scope.selectedtags = []; $rootScope.$on('selected_tags_updated', function (evt, _sTags) { - var _selectedTags = [] + var _selectedTags = []; for(var x = 0; x < _sTags.length; x++){ _selectedTags.push(_sTags[x].text) } - console.log(_selectedTags) $scope.selectedtags = _selectedTags; }); diff --git a/js/app/controllers/menu.js b/js/app/controllers/menu.js index fdf026a2..04624db1 100644 --- a/js/app/controllers/menu.js +++ b/js/app/controllers/menu.js @@ -16,6 +16,8 @@ angular.module('passmanApp') $location.path('/'); }; + // @TODO Show only tag's that exist in the list (when filtered on tag) + $scope.selectedTags = []; $scope.getTags = function ($query) { console.log(TagService.searchTag($query));