hide favorites box when no search results

This commit is contained in:
Kyle Spearrin 2017-03-25 15:56:43 -04:00
parent 8eaad64dd6
commit f3f1b413b7
1 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
<div ng-show="loading && !folders.length"> <div ng-show="loading && !folders.length">
<p>Loading...</p> <p>Loading...</p>
</div> </div>
<div class="box box-primary" style="margin-bottom: 40px;"> <div class="box box-primary" style="margin-bottom: 40px;" ng-show="!main.searchVaultText || favoriteLogins.length">
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title"> <h3 class="box-title">
<i class="fa fa-star"></i> <i class="fa fa-star"></i>
@ -126,7 +126,8 @@
<i class="fa fa-lg fa-trash"></i> <i class="fa fa-lg fa-trash"></i>
</button> </button>
<button type="button" ng-click="share(login)" class="btn btn-link btn-table" <button type="button" ng-click="share(login)" class="btn btn-link btn-table"
uib-tooltip="Share"> uib-tooltip="{{login.organizationId ? 'Already shared.' : 'Share'}}"
ng-disabled="login.organizationId !== null">
<i class="fa fa-lg fa-share-alt"></i> <i class="fa fa-lg fa-share-alt"></i>
</button> </button>
</td> </td>