mirror of
https://github.com/nextcloud/passman.git
synced 2025-11-11 06:31:58 +08:00
Clean up todo\s
This commit is contained in:
parent
7f0f297aa3
commit
7bc733ed48
6 changed files with 3 additions and 7 deletions
|
|
@ -64,8 +64,6 @@ angular.module('passmanApp')
|
||||||
_credentials.push(credential);
|
_credentials.push(credential);
|
||||||
}
|
}
|
||||||
$scope.credentials = _credentials;
|
$scope.credentials = _credentials;
|
||||||
|
|
||||||
//@Todo: Set last accessed
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,6 @@ angular.module('passmanApp')
|
||||||
FileService.deleteFile(file).then(function () {
|
FileService.deleteFile(file).then(function () {
|
||||||
$scope.storedCredential.files.splice(idx, 1);
|
$scope.storedCredential.files.splice(idx, 1);
|
||||||
});
|
});
|
||||||
//@TODO Delete file
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.fileLoaded = function (file) {
|
$scope.fileLoaded = function (file) {
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,6 @@ angular.module('passmanApp')
|
||||||
test_credential.password = 'lorum ipsum';
|
test_credential.password = 'lorum ipsum';
|
||||||
CredentialService.createCredential(test_credential).then(function (result) {
|
CredentialService.createCredential(test_credential).then(function (result) {
|
||||||
_loginToVault(vault, vault_key);
|
_loginToVault(vault, vault_key);
|
||||||
//@TODO Redirect to newly created vault
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ angular.module('passmanApp')
|
||||||
//Now load the files
|
//Now load the files
|
||||||
for (var i = 0; i < e.target.files.length; i++) {
|
for (var i = 0; i < e.target.files.length; i++) {
|
||||||
_currentFile = e.target.files[i];
|
_currentFile = e.target.files[i];
|
||||||
var mb_limit = 2000; //@TODO remove this after test (Set to 2mb)
|
var mb_limit = 5;
|
||||||
if (_currentFile.size > (mb_limit * 1024 * 1024)) {
|
if (_currentFile.size > (mb_limit * 1024 * 1024)) {
|
||||||
scope.error('TO_BIG', _currentFile);
|
scope.error('TO_BIG', _currentFile);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ angular.module('passmanApp')
|
||||||
'description': null,
|
'description': null,
|
||||||
'created': null,
|
'created': null,
|
||||||
'changed': null,
|
'changed': null,
|
||||||
'tags': null,
|
'tags': null, //2TODO Dit moet nog gemaakt worden
|
||||||
'email': null,
|
'email': null,
|
||||||
'username': null,
|
'username': null,
|
||||||
'password': null,
|
'password': null,
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,6 @@ class FileMapper extends Mapper {
|
||||||
$file = new File();
|
$file = new File();
|
||||||
$file->setId($file_id);
|
$file->setId($file_id);
|
||||||
$file->setUserId($userId);
|
$file->setUserId($userId);
|
||||||
$this->delete($file); // TODO: Change the autogenerated stub
|
$this->delete($file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue