mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-29 02:39:21 +08:00
Set progress when done reading file
This commit is contained in:
parent
ae990e2b4b
commit
d3cccd1f1a
1 changed files with 5 additions and 1 deletions
|
@ -107,8 +107,12 @@ angular.module('passmanApp')
|
|||
$window.PassmanImporter[$scope.selectedImporter.id]
|
||||
.readFile(file_data)
|
||||
.then(function(parseddata){
|
||||
$scope.file_read_percent = 100;
|
||||
parsed_data = parseddata;
|
||||
$scope.file_read_progress = {
|
||||
percent: 100,
|
||||
loaded: parsed_data.length,
|
||||
total: parsed_data.length
|
||||
};
|
||||
_log('Parsed '+ parsed_data.length + ' credentials, starting to import');
|
||||
if( parsed_data.length > 0){
|
||||
addCredential(0);
|
||||
|
|
Loading…
Reference in a new issue