only show tag or domains filter if any are available

This commit is contained in:
Johannes Zellner
2019-04-15 14:38:35 +02:00
parent 3edb119422
commit a7f37df34d

View File

@@ -515,8 +515,8 @@
<h1 class="view-header">
Your Apps
<div class="pull-right">
<multiselect ng-model="selectedTags" ms-header="All Tags" ms-selected="Tags: {{ selectedTags.join(', ') }}" options="tag for tag in tags" data-multiple="true"></multiselect>
<multiselect ng-model="selectedDomains" ms-header="All Domains" ms-selected="{{ selectedDomains | prettyDomains }}" options="domain.domain for domain in domains" data-multiple="true"></multiselect>
<multiselect ng-model="selectedTags" ng-show="tags.length > 0" ms-header="All Tags" ms-selected="Tags: {{ selectedTags.join(', ') }}" options="tag for tag in tags" data-multiple="true"></multiselect>
<multiselect ng-model="selectedDomains" ng-show="domains.length > 0" ms-header="All Domains" ms-selected="{{ selectedDomains | prettyDomains }}" options="domain.domain for domain in domains" data-multiple="true"></multiselect>
</div>
</h1>
</div>