Scroll import password request into view

This commit is contained in:
Mo Bitar
2018-08-05 09:54:59 -05:00
parent 7551170262
commit 6cbff05e10
2 changed files with 8 additions and 1 deletions

View File

@@ -236,6 +236,13 @@ class AccountMenu {
// request password
$scope.importData.requestPassword = true;
$scope.importData.data = data;
$timeout(() => {
var element = document.getElementById("import-password-request");
if(element) {
element.scrollIntoView(false);
}
})
} else {
$scope.performImport(data, null);
}

View File

@@ -151,7 +151,7 @@
%span{"ng-if" => "isDesktopApplication()"} Backups are automatically created on desktop and can be managed via the "Backups" top-level menu.
%div{"ng-if" => "importData.requestPassword"}
#import-password-request{"ng-if" => "importData.requestPassword"}
%form.panel-form.stretch{"ng-submit" => "submitImportPassword()"}
%p Enter the account password associated with the import file.
%input.form-control.mt-5{:type => 'password', "placeholder" => "Enter File Account Password", "ng-model" => "importData.password", "autofocus" => "true"}