mirror of https://github.com/BTCPrivate/copay.git
remove ion toogle
This commit is contained in:
parent
038a4f31b7
commit
47a0a1f83d
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('importController',
|
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 isChromeApp = platformInfo.isChromeApp;
|
||||||
var isDevel = platformInfo.isDevel;
|
var isDevel = platformInfo.isDevel;
|
||||||
|
@ -350,4 +350,16 @@ angular.module('copayApp.controllers').controller('importController',
|
||||||
fromOnboarding: $stateParams.fromOnboarding
|
fromOnboarding: $stateParams.fromOnboarding
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.showAdvChange = function() {
|
||||||
|
$scope.showAdv = !$scope.showAdv;
|
||||||
|
$scope.resizeView();
|
||||||
|
};
|
||||||
|
|
||||||
|
$scope.resizeView = function() {
|
||||||
|
$timeout(function() {
|
||||||
|
$ionicScrollDelegate.resize();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
|
|
||||||
<ion-content ng-controller="importController" ng-init="phrase = true; init()">
|
<ion-content ng-controller="importController" ng-init="phrase = true; init()">
|
||||||
<div class="row text-center">
|
<div class="row text-center">
|
||||||
<div class="col" ng-click="phrase = true; file = hardware = false" ng-style="phrase && {'border-bottom': '2px solid'}">
|
<div class="col" ng-click="phrase = true; file = hardware = false; showAdv = false" ng-style="phrase && {'border-bottom': '2px solid'}">
|
||||||
<span translate>Recovery phrase</span>
|
<span translate>Recovery phrase</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col" ng-click="file = true; phrase = hardware = false" ng-style="file && {'border-bottom': '2px solid'}">
|
<div class="col" ng-click="file = true; phrase = hardware = false; showAdv = false" ng-style="file && {'border-bottom': '2px solid'}">
|
||||||
<span translate>File/Text</span>
|
<span translate>File/Text</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col" ng-click="hardware = true; phrase = file = false" ng-style="hardware && {'border-bottom': '2px solid'}">
|
<div class="col" ng-click="hardware = true; phrase = file = false; showAdv = false" ng-style="hardware && {'border-bottom': '2px solid'}">
|
||||||
<span translate>Hardware wallet</span>
|
<span translate>Hardware wallet</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -21,10 +21,12 @@
|
||||||
ng-model="formData.password">
|
ng-model="formData.password">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<ion-toggle ng-model="showAdv" toggle-class="toggle-stable">
|
<div class="item item-divider"></div>
|
||||||
|
|
||||||
|
<a class="item" ng-click="showAdvChange()">
|
||||||
<span translate ng-show="!showAdv">Show advanced options</span>
|
<span translate ng-show="!showAdv">Show advanced options</span>
|
||||||
<span translate ng-show="showAdv">Hide advanced options</span>
|
<span translate ng-show="showAdv">Hide advanced options</span>
|
||||||
</ion-toggle>
|
</a>
|
||||||
|
|
||||||
<div ng-show="showAdv">
|
<div ng-show="showAdv">
|
||||||
<label class="item item-input item-stacked-label">
|
<label class="item item-input item-stacked-label">
|
||||||
|
|
|
@ -24,10 +24,12 @@
|
||||||
<span translate>Shared Wallet</span>
|
<span translate>Shared Wallet</span>
|
||||||
</ion-toggle>
|
</ion-toggle>
|
||||||
|
|
||||||
<ion-toggle ng-model="showAdv" toggle-class="toggle-stable">
|
<div class="item item-divider"></div>
|
||||||
|
|
||||||
|
<a class="item" ng-click="showAdvChange()">
|
||||||
<span translate ng-show="!showAdv">Show advanced options</span>
|
<span translate ng-show="!showAdv">Show advanced options</span>
|
||||||
<span translate ng-show="showAdv">Hide advanced options</span>
|
<span translate ng-show="showAdv">Hide advanced options</span>
|
||||||
</ion-toggle>
|
</a>
|
||||||
|
|
||||||
<div ng-show="showAdv">
|
<div ng-show="showAdv">
|
||||||
<label class="item item-input item-stacked-label">
|
<label class="item item-input item-stacked-label">
|
||||||
|
|
|
@ -27,10 +27,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ion-toggle ng-model="showAdv" toggle-class="toggle-stable">
|
<div class="item item-divider"></div>
|
||||||
|
|
||||||
|
<a class="item" ng-click="showAdvChange()">
|
||||||
<span translate ng-show="!showAdv">Show advanced options</span>
|
<span translate ng-show="!showAdv">Show advanced options</span>
|
||||||
<span translate ng-show="showAdv">Hide advanced options</span>
|
<span translate ng-show="showAdv">Hide advanced options</span>
|
||||||
</ion-toggle>
|
</a>
|
||||||
|
|
||||||
<div ng-show="showAdv">
|
<div ng-show="showAdv">
|
||||||
<label class="item item-input item-stacked-label">
|
<label class="item item-input item-stacked-label">
|
||||||
|
|
Loading…
Reference in New Issue