Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/app
diff options
context:
space:
mode:
authorbinsky <timo@binsky.org>2021-03-12 18:26:34 +0300
committerbinsky <timo@binsky.org>2021-03-12 18:31:01 +0300
commit16839713e5d89d602efc2b57212a97af35d85bb4 (patch)
tree15965d942a7e1d97e050ba3052fe8bd6f599c049 /js/app
parent646654e6d1ec19e86c0ed9172dce743a4ff5a814 (diff)
implement global nextcloud search credential handling
Diffstat (limited to 'js/app')
-rw-r--r--js/app/controllers/credential.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/app/controllers/credential.js b/js/app/controllers/credential.js
index 3c70736a..9d84f33c 100644
--- a/js/app/controllers/credential.js
+++ b/js/app/controllers/credential.js
@@ -118,6 +118,7 @@
VaultService.updateSharingKeys($scope.active_vault);
});
}
+ $scope.checkURLAction();
});
});
};
@@ -544,6 +545,24 @@
VaultService.clearVaultService();
});
+ $scope.$watch(function(){ return $location.search(); }, function(params){
+ $scope.checkURLAction();
+ });
+
+ $scope.checkURLAction = function () {
+ var search = $location.search();
+ if (search.show !== undefined && $scope.active_vault.credentials !== undefined &&
+ $scope.active_vault.credentials.length > 0) {
+ $scope.closeSelected();
+ $scope.active_vault.credentials.forEach(function(credential, index, myArray) {
+ if (credential.guid === search.show) {
+ $scope.selectCredential(credential);
+ return true;
+ }
+ });
+ }
+ };
+
$scope.clearState = function () {
$scope.delete_time = 0;
};