1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

clear view grouping state on vault load

This commit is contained in:
Kyle Spearrin 2017-11-29 10:58:45 -05:00
parent f2eb46eade
commit 465bfd9458
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ angular
syncService, utilsService, $analytics, i18nService, stateService, $timeout, $window, collectionService) {
var stateKey = 'vault',
state = stateService.getState(stateKey) || {};
stateService.removeState('viewGrouping');
$scope.i18n = i18nService;
$scope.showGroupingCounts = !utilsService.isEdge();

View File

@ -35,7 +35,7 @@
</div>
</div>
</div>
<div class="centered-message" ng-if="loaded && !vaultCiphers.length">
<div class="centered-message" ng-if="loaded && !vaultCiphers.length && !searchText">
<p>
{{i18n.noItemsInList}}
<button ng-click="addCipher()" style="margin-top: 20px;" class="btn btn-link btn-block">{{i18n.addItem}}</button>