mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-11 01:34:12 +08:00
Fix active vault bug in settings
This commit is contained in:
parent
c132ab6c6c
commit
0714bddb3b
1 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
angular.module('passmanApp')
|
||||
.controller('SettingsCtrl', ['$scope', '$rootScope', 'SettingsService', 'VaultService', 'CredentialService', '$location', '$routeParams', '$http',
|
||||
function ($scope, $rootScope, SettingsService, VaultService, CredentialService, $location, $routeParams, $http) {
|
||||
|
||||
$scope.active_vault = VaultService.getActiveVault();
|
||||
$scope.tabs = [
|
||||
{
|
||||
title: 'General settings',
|
||||
|
@ -53,7 +53,9 @@ angular.module('passmanApp')
|
|||
$scope.$watch(function () {
|
||||
return VaultService.getActiveVault()
|
||||
}, function (vault) {
|
||||
$scope.active_vault = vault;
|
||||
if(vault) {
|
||||
$scope.active_vault = vault;
|
||||
}
|
||||
});
|
||||
|
||||
if (!SettingsService.getSetting('defaultVault') || !SettingsService.getSetting('defaultVaultPass')) {
|
||||
|
|
Loading…
Reference in a new issue