mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
remove empty uri on add
This commit is contained in:
@@ -36,6 +36,11 @@
|
|||||||
|
|
||||||
$scope.savePromise = null;
|
$scope.savePromise = null;
|
||||||
$scope.save = function () {
|
$scope.save = function () {
|
||||||
|
if ($scope.cipher.type === constants.cipherType.login && $scope.cipher.login.uris.length === 1 &&
|
||||||
|
($scope.cipher.login.uris[0].uri == null || $scope.cipher.login.uris[0].uri === '')) {
|
||||||
|
$scope.cipher.login.uris = null;
|
||||||
|
}
|
||||||
|
|
||||||
var cipher = cipherService.encryptCipher($scope.cipher);
|
var cipher = cipherService.encryptCipher($scope.cipher);
|
||||||
$scope.savePromise = apiService.ciphers.post(cipher, function (cipherResponse) {
|
$scope.savePromise = apiService.ciphers.post(cipher, function (cipherResponse) {
|
||||||
$analytics.eventTrack('Created Cipher');
|
$analytics.eventTrack('Created Cipher');
|
||||||
|
|||||||
Reference in New Issue
Block a user