diff --git a/appinfo/routes.php b/appinfo/routes.php index 54a8b904..07439625 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -27,6 +27,7 @@ return [ ['name' => 'vault#get', 'url' => '/api/v2/vaults/{vault_id}', 'verb' => 'GET'], ['name' => 'vault#update', 'url' => '/api/v2/vaults/{vault_id}', 'verb' => 'PATCH'], ['name' => 'vault#delete', 'url' => '/api/v2/vaults/{vault_id}', 'verb' => 'DELETE'], + //@TODO make frontend use PATCH ['name' => 'vault#updateSharingKeys', 'url' => '/api/v2/vaults/{vault_id}/sharing-keys', 'verb' => 'POST'], //Credential diff --git a/js/app/controllers/import.js b/js/app/controllers/import.js index 1d2cdb0f..91eed59d 100644 --- a/js/app/controllers/import.js +++ b/js/app/controllers/import.js @@ -85,8 +85,8 @@ angular.module('passmanApp') } else { $scope.import_progress = { progress: 100, - loaded: parsed_data.length-1, - total: parsed_data.length-1 + loaded: parsed_data.length, + total: parsed_data.length }; _log('DONE!'); } diff --git a/js/importers/importer-randomdata.js b/js/importers/importer-randomdata.js index 062443a7..a9eb350a 100644 --- a/js/importers/importer-randomdata.js +++ b/js/importers/importer-randomdata.js @@ -57,7 +57,7 @@ PassmanImporter.randomData.readFile = function (file_data, callback) { } } credential_list.push(_credential); - if (i <= max) { + if (i < max) { var progress = { percent: i / max * 100, loaded: i, @@ -74,7 +74,7 @@ PassmanImporter.randomData.readFile = function (file_data, callback) { }; - generateCredential(10, 1, function (credential_list) { + generateCredential(350, 1, function (credential_list) { _this.call_then(credential_list); }); }); diff --git a/js/templates.js b/js/templates.js index 88aa0c12..da4c3ad1 100644 --- a/js/templates.js +++ b/js/templates.js @@ -57,7 +57,7 @@ angular.module('views/partials/forms/settings/general_settings.html', []).run([' angular.module('views/partials/forms/settings/import.html', []).run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('views/partials/forms/settings/import.html', - '