diff --git a/src/js/controllers/import.js b/src/js/controllers/import.js index bdc97e984..056d55ed5 100644 --- a/src/js/controllers/import.js +++ b/src/js/controllers/import.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copayApp.controllers').controller('importController', - function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, profileService, configService, sjcl, ledger, trezor, derivationPathHelper, platformInfo, bwcService, ongoingProcess, walletService, popupService, gettextCatalog) { + function($scope, $timeout, $log, $state, $stateParams, $ionicHistory, $ionicScrollDelegate, profileService, configService, sjcl, ledger, trezor, derivationPathHelper, platformInfo, bwcService, ongoingProcess, walletService, popupService, gettextCatalog) { var isChromeApp = platformInfo.isChromeApp; var isDevel = platformInfo.isDevel; @@ -350,4 +350,16 @@ angular.module('copayApp.controllers').controller('importController', fromOnboarding: $stateParams.fromOnboarding }); }; + + $scope.showAdvChange = function() { + $scope.showAdv = !$scope.showAdv; + $scope.resizeView(); + }; + + $scope.resizeView = function() { + $timeout(function() { + $ionicScrollDelegate.resize(); + }); + }; + }); diff --git a/www/views/import.html b/www/views/import.html index 81c80f651..7a9940c83 100644 --- a/www/views/import.html +++ b/www/views/import.html @@ -7,13 +7,13 @@
-
+
Recovery phrase
-
+
File/Text
-
+
Hardware wallet
diff --git a/www/views/tab-import-file.html b/www/views/tab-import-file.html index 31d439c4f..8cfa4fa7f 100644 --- a/www/views/tab-import-file.html +++ b/www/views/tab-import-file.html @@ -21,10 +21,12 @@ ng-model="formData.password"> - +
+ + Show advanced options Hide advanced options -
+
- +
+ + Show advanced options Hide advanced options -
+