1
0
mirror of https://github.com/bitwarden/web synced 2025-12-14 23:33:16 +00:00

force vault refresh upon importing

This commit is contained in:
Kyle Spearrin
2017-04-21 14:24:24 -04:00
parent e010995b19
commit d61b6c2faa
3 changed files with 10 additions and 3 deletions

View File

@@ -2,11 +2,15 @@
.module('bit.vault')
.controller('vaultController', function ($scope, $uibModal, apiService, $filter, cryptoService, authService, toastr,
cipherService, $q, $localStorage, $timeout, $rootScope) {
cipherService, $q, $localStorage, $timeout, $rootScope, $state) {
$scope.loading = true;
$scope.logins = [];
$scope.favoriteCollapsed = $localStorage.collapsedFolders && 'favorite' in $localStorage.collapsedFolders;
if ($state.params.refreshFromServer) {
$rootScope.vaultFolders = $rootScope.vaultLogins = null;
}
$scope.$on('$viewContentLoaded', function () {
if ($rootScope.vaultFolders && $rootScope.vaultLogins) {
$scope.loading = false;