fix loading spinner for create and join
This commit is contained in:
parent
05d1ba98ae
commit
b018028b17
3 changed files with 7 additions and 8 deletions
|
|
@ -127,13 +127,13 @@ angular.module('copayApp.controllers').controller('JoinController',
|
|||
return;
|
||||
}
|
||||
|
||||
$scope.loading = true;
|
||||
$rootScope.starting = true;
|
||||
identityService.joinWallet({
|
||||
secret: $scope.connectionId,
|
||||
nickname: $scope.nickname,
|
||||
privateHex: $scope.private,
|
||||
}, function(err) {
|
||||
$scope.loading = false;
|
||||
$rootScope.starting = false;
|
||||
if (err) {
|
||||
if (err === 'joinError')
|
||||
notification.error('Fatal error connecting to Insight server');
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<div ng-controller="CreateController">
|
||||
<div data-alert ng-show="loading">
|
||||
<div ng-show="$root.starting">
|
||||
<div ng-include="'views/includes/loading.html'" ng-init="title = 'Creating wallet'"></div>
|
||||
</div>
|
||||
<div class="setup" ng-show="!loading && !$root.starting">
|
||||
<div class="setup" ng-show="!$root.starting">
|
||||
<form name="setupForm" ng-submit="create(setupForm)" novalidate>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
|
||||
|
||||
<div class="text-right">
|
||||
<button translate type="submit" class="button primary expand m0" ng-disabled="setupForm.$invalid || loading">
|
||||
<button translate type="submit" class="button primary expand m0" ng-disabled="setupForm.$invalid">
|
||||
Create {{requiredCopayers}}-of-{{totalCopayers}} wallet
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<div class="join" ng-controller="JoinController">
|
||||
<div ng-show="loading">
|
||||
<div ng-show="$root.starting">
|
||||
<div ng-include="'views/includes/loading.html'" ng-init="title = 'Connecting to Insight Wallet Server'"></div>
|
||||
</div>
|
||||
|
||||
<div ng-show="!loading">
|
||||
<div ng-show="!$root.starting">
|
||||
<div class="row hide-for-large-up">
|
||||
<div class="large-12 medium-12 small-12 columns">
|
||||
<h1>{{$root.title}}</h1>
|
||||
|
|
@ -73,7 +73,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End !loading -->
|
||||
</div>
|
||||
|
||||
<div class="extra-margin-bottom"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue