add config for video, add names in footer
This commit is contained in:
parent
225fbc02da
commit
88116dab25
6 changed files with 20 additions and 11 deletions
|
|
@ -104,7 +104,6 @@ var defaultConfig = {
|
|||
|
||||
// theme list
|
||||
themes: ['default'],
|
||||
|
||||
|
||||
disableVideo: 1,
|
||||
verbose: 1,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -54,11 +54,11 @@ html, body {height: 100%;}
|
|||
}
|
||||
|
||||
.bottom-copay {
|
||||
width: 56px;
|
||||
width: 50px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
float: right;
|
||||
margin-left: 15px;
|
||||
margin-left: 20px;
|
||||
/* height: 551px; */
|
||||
}
|
||||
|
||||
|
|
|
|||
13
index.html
13
index.html
|
|
@ -150,7 +150,7 @@
|
|||
<div id="footer" data-ng-controller="FooterController" ng-class="{'footer-home': !$root.wallet}">
|
||||
<link rel="stylesheet" ng-href="{{theme}}">
|
||||
<div ng-show="!$root.wallet">
|
||||
<div class="large-12 columns text-right">
|
||||
<div class="large-12 columns text-left">
|
||||
Copay
|
||||
<small>v{{version}}</small>
|
||||
</div>
|
||||
|
|
@ -163,14 +163,18 @@
|
|||
<div class="size-12 m10t">
|
||||
{{$root.wallet.requiredCopayers}}-of-{{$root.wallet.totalCopayers}} wallet
|
||||
</div>
|
||||
<div class="text-gray size-12" style="margin-top:5px">
|
||||
Copay v{{version}}
|
||||
</div>
|
||||
|
||||
<div class="size-12 m10t" ng-if="themes.length > 1">
|
||||
<a class="size-12" ng-click="change_theme(th)" ng-repeat="th in themes">{{th}} {{$last ? '' : '· '}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="large-9 medium-9 small-9 columns">
|
||||
<a href="#/addresses" > </a>
|
||||
<div class="bottom-copay"
|
||||
ng-repeat="c in $root.wallet.getRegisteredPeerIds()" class="has-tip" tooltip-popup-delay="1000" tooltip-placement="top" tooltip="{{c.nick}}">
|
||||
<!-- <div class="bottom-copay" ng-repeat="c in $root.wallet.getRegisteredPeerIds()" class="has-tip" tooltip-popup-delay="1000" tooltip-placement="top" tooltip="{{c.nick}}"> -->
|
||||
<div class="bottom-copay" ng-repeat="c in $root.wallet.getRegisteredPeerIds()">
|
||||
<video ng-if="$root.videoInfo[c.peerId]"
|
||||
avatar peer="{{c}}"
|
||||
autoplay
|
||||
|
|
@ -182,6 +186,9 @@
|
|||
ng-class="($root.wallet.getOnlinePeerIDs().indexOf(c.peerId) != -1) ? 'online' : 'offline'"
|
||||
src="./img/satoshi.gif"
|
||||
/>
|
||||
<div class="size-12 text-center text-gray" stype="margin-top:4px">
|
||||
{{c.nick || 'NN'}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ angular.module('copayApp.controllers').controller('FooterController', function($
|
|||
$scope.version = copay.version;
|
||||
|
||||
$scope.getVideoURL = function(copayer) {
|
||||
if (config.disableVideo) return;
|
||||
|
||||
var vi = $rootScope.videoInfo[copayer]
|
||||
if (!vi) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,8 @@ angular.module('copayApp.services')
|
|||
w.on('ready', function(myPeerID) {
|
||||
$rootScope.wallet = w;
|
||||
$location.path('addresses');
|
||||
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
||||
if (!config.disableVideo)
|
||||
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
||||
});
|
||||
|
||||
w.on('publicKeyRingUpdated', function(dontDigest) {
|
||||
|
|
@ -83,7 +84,7 @@ angular.module('copayApp.services')
|
|||
root.onErrorDigest(msg);
|
||||
});
|
||||
w.on('connect', function(peerID) {
|
||||
if (peerID) {
|
||||
if (peerID && !config.disableVideo) {
|
||||
video.callPeer(peerID, handlePeerVideo);
|
||||
}
|
||||
$rootScope.$digest();
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ describe('TxProposals model', function() {
|
|||
uuk[0].split(',')[0].should.equal(unspentTest[0].txid);
|
||||
});
|
||||
|
||||
it.skip('#merge with self', function () {
|
||||
it('#merge with self', function () {
|
||||
var priv = new PrivateKey(config);
|
||||
var w = new TxProposals({
|
||||
networkName: config.networkName,
|
||||
|
|
@ -398,7 +398,7 @@ var _dumpChunks = function (scriptSig, label) {
|
|||
});
|
||||
|
||||
|
||||
it.skip('#merge, merge signatures case 3', function () {
|
||||
it('#merge, merge signatures case 3', function () {
|
||||
|
||||
var priv = new PrivateKey(config);
|
||||
var priv2 = new PrivateKey(config);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue