add new class when tag is used in current searchTags

This commit is contained in:
OldHawk
2017-04-06 18:01:12 +08:00
parent 006ef5eeb1
commit 2944a44f82
2 changed files with 4 additions and 1 deletions

View File

@@ -241,4 +241,7 @@
&:active {
color: #0366d6;
}
&.used {
background-color: #abd5ff !important;
}
}

View File

@@ -120,7 +120,7 @@
<!--<span class="label label-success text-uppercase">{{ item.torrent_type}}</span>-->
<span class="label label-warning">{{ item.torrent_release}}</span>
<span ng-repeat="t in item.torrent_tags">
<span class="label label-tag" ng-click="vm.onTagClicked(t)">
<span class="label label-tag" ng-class="{'used': vm.searchTags.indexOf(t) !== -1}" ng-click="vm.onTagClicked(t)">
{{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}}
</span>
</span>