feat(torrents): hide torrent type in list when enable is false

This commit is contained in:
OldHawk
2017-09-22 13:45:15 +08:00
parent 59edec3910
commit 39471c2f58
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
<div class="row margin-bottom-5">
<div class="col-sm-6 col-md-4">
<select class="form-control" ng-model="vm.selectedType" ng-change="vm.onTorrentTypeChanged();">
<option ng-repeat="t in vm.torrentType.value" value="{{t.value}}">{{'MENU_TORRENTS_SUB.'+t.name | translate}}
<option ng-repeat="t in vm.torrentType.value | filter:{enable: true}" value="{{t.value}}">{{'MENU_TORRENTS_SUB.'+t.name | translate}}
</option>
</select>
</div>

View File

@@ -41,12 +41,12 @@
</div>
</div>
<div class="row margin-bottom-40" ng-show="vm.successfully == true">
<div class="row margin-bottom-40" ng-show="vm.successfully !== true">
<div class="col-xs-12">
<legend class="small-legend" translate="SELECT_RESOURCE_TYPE"></legend>
<div class="col-xs-12 col-sm-6 col-md-4">
<select class="form-control" ng-model="vm.selectedType" ng-change="vm.onTorrentTypeChanged();">
<option ng-repeat="t in vm.torrentType.value" value="{{t.value}}">{{'MENU_TORRENTS_SUB.'+t.name | translate}}</option>
<option ng-repeat="t in vm.torrentType.value | filter:{enable: true}" value="{{t.value}}">{{'MENU_TORRENTS_SUB.'+t.name | translate}}</option>
</select>
</div>
</div>