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) { syncService, utilsService, $analytics, i18nService, stateService, $timeout, $window, collectionService) {
var stateKey = 'vault', var stateKey = 'vault',
state = stateService.getState(stateKey) || {}; state = stateService.getState(stateKey) || {};
stateService.removeState('viewGrouping');
$scope.i18n = i18nService; $scope.i18n = i18nService;
$scope.showGroupingCounts = !utilsService.isEdge(); $scope.showGroupingCounts = !utilsService.isEdge();

View File

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