frontend: Add field to filter tag list
This commit is contained in:
parent
3ad7976e4b
commit
8463993581
2 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,8 @@
|
|||
Tags
|
||||
</a>
|
||||
<div class="dropdown-menu niceborder">
|
||||
<a ng-repeat="(tname,tag) in tags" ng-class="{active: tname == current_tag}" class="dropdown-item" ng-href="/tags/{{ tname }}">#{{ tname }} <span class="badge badge-light"><span ng-if="(my.team_id)">{{ tag.solved }}/</span>{{ tag.count }}</span></a>
|
||||
<input type="search" class="dropdown-item" placeholder="Filtrer" id="filtertag" ng-model="filtertag">
|
||||
<a ng-repeat="tname in tagsl | filter: filtertag" ng-class="{active: tname == current_tag}" class="dropdown-item" ng-href="/tags/{{ tname }}">#{{ tname }} <span class="badge badge-light"><span ng-if="(my.team_id)">{{ tags[tname].solved }}/</span>{{ tags[tname].count }}</span></a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
|
|
|
@ -131,6 +131,7 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
});
|
||||
});
|
||||
$scope.tags = tags;
|
||||
$scope.tagsl = Object.keys(tags);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue