Do not show application token listing if there is nothing to show

This commit is contained in:
Johannes Zellner
2016-06-08 13:03:55 +02:00
parent fc2d1d61d7
commit 6e4d6d1099

View File

@@ -153,10 +153,12 @@
<div class="row">
<div class="col-xs-12">
<p>You are logged {{ activeTokenCount }} times into applications, including this session.</p>
<hr/>
<h4>Active Applications:</h4>
<p ng-repeat="client in activeClients"><b>{{ client.name }} ({{client.activeTokens.length}} times)</b></p>
<hr/>
<span ng-show="activeTokenCount > 1">
<hr/>
<h4>Active Applications:</h4>
<p ng-repeat="client in activeClients"><b>{{ client.name }} ({{client.activeTokens.length}} times)</b></p>
<hr/>
</span>
<button class="btn btn-outline btn-xs btn-danger pull-right" ng-click="revokeTokens()">Revoke access to all</button>
</div>
</div>