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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user