Merge pull request #843 from matiu/feature/intermediate-screen
Feature/intermediate screen
This commit is contained in:
commit
bc4a1ca3ee
3 changed files with 49 additions and 28 deletions
|
|
@ -286,6 +286,11 @@ hr { margin: 2.25rem 0;}
|
||||||
display: inline;
|
display: inline;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.setup .video-small {
|
||||||
|
float: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.online {
|
.online {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
border: 3px solid #1ABC9C;
|
border: 3px solid #1ABC9C;
|
||||||
|
|
|
||||||
69
index.html
69
index.html
|
|
@ -82,31 +82,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-if='$root.wallet && !$root.wallet.isReady() && !loading'>
|
<div ng-if='$root.wallet && !$root.wallet.isReady() && !loading'>
|
||||||
<div class="row">
|
|
||||||
<div class="large-12 medium-12 small-12 columns">
|
|
||||||
<div class="alert-box secondary radius" ng-if="!$root.wallet.publicKeyRing.isComplete()" data-alert>
|
|
||||||
<i class="fi-info"></i>
|
|
||||||
Not all copayers have joined your wallet yet.
|
|
||||||
<span ng-show="$root.wallet.publicKeyRing.totalCopayers - $root.wallet.publicKeyRing.registeredCopayers()>1">
|
|
||||||
{{$root.wallet.publicKeyRing.totalCopayers - $root.wallet.publicKeyRing.registeredCopayers() }} people have
|
|
||||||
</span>
|
|
||||||
<span ng-show="$root.wallet.publicKeyRing.totalCopayers - $root.wallet.publicKeyRing.registeredCopayers()==1">
|
|
||||||
One person has
|
|
||||||
</span>
|
|
||||||
yet to join.
|
|
||||||
</div>
|
|
||||||
<div class="alert-box success radius" ng-if="$root.wallet.publicKeyRing.isComplete()" data-alert>
|
|
||||||
<i class="fi-check"></i>
|
|
||||||
All copayers have joined the wallet, it's ready for use!
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row" ng-if="!$root.wallet.publicKeyRing.isComplete()">
|
<div class="row" ng-if="!$root.wallet.publicKeyRing.isComplete()">
|
||||||
<div class="large-12 medium-12 small-12 columns ">
|
<div class="large-12 medium-12 small-12 columns ">
|
||||||
<div class="panel radius m30v">
|
<div class="panel radius m30v">
|
||||||
<h3 class="m15b">Share this secret with your other copayers
|
<h3 class="m15b">Share this secret with your other copayers
|
||||||
<small> for them to join your wallet</small>
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="large-9 medium-12 small-12 columns line-dashed-v text-gray">
|
<div class="large-9 medium-12 small-12 columns line-dashed-v text-gray">
|
||||||
|
|
@ -126,11 +105,34 @@
|
||||||
<div class="large-12 medium-12 small-12 columns ">
|
<div class="large-12 medium-12 small-12 columns ">
|
||||||
<div class="box-setup-copayers">
|
<div class="box-setup-copayers">
|
||||||
<div class="box-setup-copayers-fix">
|
<div class="box-setup-copayers-fix">
|
||||||
<img class="box-setup-copay"
|
<h5>People on this wallet</h5>
|
||||||
ng-repeat="i in getNumber($root.wallet.totalCopayers) track by $index"
|
|
||||||
src="./img/satoshi.gif"
|
<div class="setup" ng-repeat="c in $root.wallet.getRegisteredPeerIds()">
|
||||||
title="Copayer {{$index+1}}-{{totalCopayers}}"
|
<video ng-if="$root.videoInfo[c.peerId]"
|
||||||
ng-class="{'box-setup-copay-required': ($index+1) <= $root.wallet.publicKeyRing.registeredCopayers()}">
|
avatar peer="{{c}}"
|
||||||
|
autoplay
|
||||||
|
ng-class="($root.wallet.getOnlinePeerIDs().indexOf(c.peerId) != -1) ? 'online' : 'offline'"
|
||||||
|
ng-src="{{getVideoURL(c.peerId)}}"
|
||||||
|
></video>
|
||||||
|
<img ng-if="!$root.videoInfo[c.peerId]"
|
||||||
|
avatar peer="{{c}}"
|
||||||
|
ng-class="($root.wallet.getOnlinePeerIDs().indexOf(c.peerId) != -1) ? 'online' : 'offline'"
|
||||||
|
src="./img/satoshi.gif"
|
||||||
|
/>
|
||||||
|
<span ng-show="c.index==0">
|
||||||
|
you
|
||||||
|
</span>
|
||||||
|
<span ng-show="c.index>0">
|
||||||
|
{{c.nick}}
|
||||||
|
[SIN: {{c.peerId}}]
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="m10" ng-if="!$root.wallet.publicKeyRing.isComplete()">
|
||||||
|
<i class="size-21 fi-bitcoin-circle icon-rotate spinner"></i>
|
||||||
|
Waiting for other copayers to join
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -139,7 +141,20 @@
|
||||||
<button class="button primary radius right"
|
<button class="button primary radius right"
|
||||||
ng-click="backupAndOpen()"
|
ng-click="backupAndOpen()"
|
||||||
ng-disabled="!$root.wallet.publicKeyRing.isComplete()">
|
ng-disabled="!$root.wallet.publicKeyRing.isComplete()">
|
||||||
Backup keys and continue
|
<span ng-show="$root.wallet.publicKeyRing.isComplete()" >
|
||||||
|
Backup keys and continue
|
||||||
|
</span>
|
||||||
|
<span ng-show="!$root.wallet.publicKeyRing.isComplete()" >
|
||||||
|
<span ng-show="$root.wallet.publicKeyRing.totalCopayers - $root.wallet.publicKeyRing.registeredCopayers()>1">
|
||||||
|
{{$root.wallet.publicKeyRing.totalCopayers - $root.wallet.publicKeyRing.registeredCopayers() }} people have
|
||||||
|
</span>
|
||||||
|
<span ng-show="$root.wallet.publicKeyRing.totalCopayers - $root.wallet.publicKeyRing.registeredCopayers()==1">
|
||||||
|
One person has
|
||||||
|
</span>
|
||||||
|
yet to join.
|
||||||
|
</span>
|
||||||
|
|
||||||
|
|
||||||
</button>
|
</button>
|
||||||
<!-- <a href="" class="db p10t left" ng-disabled="!$root.wallet.publicKeyRing.isComplete()">Skip Backup</a> -->
|
<!-- <a href="" class="db p10t left" ng-disabled="!$root.wallet.publicKeyRing.isComplete()">Skip Backup</a> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -326,7 +326,8 @@ Wallet.prototype.getRegisteredPeerIds = function() {
|
||||||
var pid = this.network.peerFromCopayer(cid);
|
var pid = this.network.peerFromCopayer(cid);
|
||||||
this.registeredPeerIds.push({
|
this.registeredPeerIds.push({
|
||||||
peerId: pid,
|
peerId: pid,
|
||||||
nick: this.publicKeyRing.nicknameForCopayer(cid)
|
nick: this.publicKeyRing.nicknameForCopayer(cid),
|
||||||
|
index: i,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue