mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-17 14:19:45 +08:00
Removed unused and deprecated code
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
parent
04e16b8f6b
commit
4d6af87c19
2 changed files with 2 additions and 18 deletions
|
|
@ -356,19 +356,6 @@
|
|||
$scope.updateExistingListWithCredential(updated_cred);
|
||||
});
|
||||
}
|
||||
$scope.refreshListWithSaved();
|
||||
};
|
||||
|
||||
$scope.refreshListWithSaved = function () {
|
||||
var current_vault = $rootScope.vaultCache[$scope.active_vault.guid];
|
||||
var cv_credentials = current_vault.credentials;
|
||||
for (var i = 0; i < cv_credentials.length; i++) {
|
||||
if (cv_credentials[i].credential_id === $scope.storedCredential.credential_id) {
|
||||
cv_credentials[i] = $scope.storedCredential;
|
||||
}
|
||||
}
|
||||
current_vault.credentials=cv_credentials;
|
||||
$rootScope.vaultCache[$scope.active_vault.guid] = current_vault;
|
||||
};
|
||||
|
||||
$scope.updateExistingListWithCredential = function (credential) {
|
||||
|
|
@ -381,14 +368,13 @@
|
|||
}
|
||||
credential.tags_raw = credential.tags;
|
||||
|
||||
|
||||
var found=false;
|
||||
var credList=$rootScope.vaultCache[$scope.active_vault.guid].credentials;
|
||||
for (var i = 0; i < credList.length; i++) {
|
||||
if (credList[i].credential_id === credential.credential_id) {
|
||||
if (credList[i].credential_id === credential.credential_id) {
|
||||
$rootScope.vaultCache[$scope.active_vault.guid].credentials[i]=credential;
|
||||
found=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!found){
|
||||
|
|
|
|||
|
|
@ -95,8 +95,6 @@
|
|||
};
|
||||
|
||||
$('#iconPicker-CustomIcon').on('change', function(ev) {
|
||||
|
||||
console.log("upload");
|
||||
scope.customIcon = {};
|
||||
|
||||
var f = ev.target.files[0];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue