clear view grouping state on vault load
This commit is contained in:
parent
f2eb46eade
commit
465bfd9458
|
@ -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();
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue