mirror of https://github.com/BTCPrivate/copay.git
fix avatar directive bug
This commit is contained in:
parent
032ae804b1
commit
55d1a2f671
|
@ -126,10 +126,12 @@
|
||||||
<video ng-if="$root.videoInfo[c.peerId]"
|
<video ng-if="$root.videoInfo[c.peerId]"
|
||||||
avatar peer="{{c}}"
|
avatar peer="{{c}}"
|
||||||
autoplay
|
autoplay
|
||||||
|
ng-class="($root.wallet.getOnlinePeerIDs().indexOf(c.peerId) != -1) ? 'online' : 'offline'"
|
||||||
ng-src="{{$root.getVideoURL(c.peerId)}}"
|
ng-src="{{$root.getVideoURL(c.peerId)}}"
|
||||||
></video>
|
></video>
|
||||||
<img ng-if="!$root.videoInfo[c.peerId]"
|
<img ng-if="!$root.videoInfo[c.peerId]"
|
||||||
avatar peer="{{c}}"
|
avatar peer="{{c}}"
|
||||||
|
ng-class="($root.wallet.getOnlinePeerIDs().indexOf(c.peerId) != -1) ? 'online' : 'offline'"
|
||||||
src="./img/satoshi.gif"
|
src="./img/satoshi.gif"
|
||||||
/>
|
/>
|
||||||
<span ng-if="c.nick" style="position:absolute; bottom:-10px; width: 80px; overflow: hidden;">{{c.nick}}</span>
|
<span ng-if="c.nick" style="position:absolute; bottom:-10px; width: 80px; overflow: hidden;">{{c.nick}}</span>
|
||||||
|
|
|
@ -95,9 +95,8 @@ angular.module('copay.directives')
|
||||||
var peer = JSON.parse(attrs.peer)
|
var peer = JSON.parse(attrs.peer)
|
||||||
var peerId = peer.peerId;
|
var peerId = peer.peerId;
|
||||||
var nick = peer.nick;
|
var nick = peer.nick;
|
||||||
element.addClass(($rootScope.wallet.getOnlinePeerIDs().indexOf(peerId) != -1) ? 'online' : 'offline');
|
|
||||||
element.addClass('video-small');
|
element.addClass('video-small');
|
||||||
element.attr('title', peerId + (peerId == $rootScope.wallet.network.peerId?' (You)':''));
|
element.attr('title', peerId + (peerId == $rootScope.wallet.network.peerId ? ' (You)' : ''));
|
||||||
var muted = $rootScope.getVideoMutedStatus(peerId);
|
var muted = $rootScope.getVideoMutedStatus(peerId);
|
||||||
if (muted) {
|
if (muted) {
|
||||||
element.attr("muted", true);
|
element.attr("muted", true);
|
||||||
|
|
Loading…
Reference in New Issue