mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-26 13:26:41 +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')
|
angular.module('passmanApp')
|
||||||
.controller('SettingsCtrl', ['$scope', '$rootScope', 'SettingsService', 'VaultService', 'CredentialService', '$location', '$routeParams', '$http',
|
.controller('SettingsCtrl', ['$scope', '$rootScope', 'SettingsService', 'VaultService', 'CredentialService', '$location', '$routeParams', '$http',
|
||||||
function ($scope, $rootScope, SettingsService, VaultService, CredentialService, $location, $routeParams, $http) {
|
function ($scope, $rootScope, SettingsService, VaultService, CredentialService, $location, $routeParams, $http) {
|
||||||
|
$scope.active_vault = VaultService.getActiveVault();
|
||||||
$scope.tabs = [
|
$scope.tabs = [
|
||||||
{
|
{
|
||||||
title: 'General settings',
|
title: 'General settings',
|
||||||
|
|
@ -53,7 +53,9 @@ angular.module('passmanApp')
|
||||||
$scope.$watch(function () {
|
$scope.$watch(function () {
|
||||||
return VaultService.getActiveVault()
|
return VaultService.getActiveVault()
|
||||||
}, function (vault) {
|
}, function (vault) {
|
||||||
$scope.active_vault = vault;
|
if(vault) {
|
||||||
|
$scope.active_vault = vault;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!SettingsService.getSetting('defaultVault') || !SettingsService.getSetting('defaultVaultPass')) {
|
if (!SettingsService.getSetting('defaultVault') || !SettingsService.getSetting('defaultVaultPass')) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue