remove peer tab
This commit is contained in:
parent
fb8a52fd6a
commit
93620fa6c0
4 changed files with 5 additions and 19 deletions
|
|
@ -52,7 +52,7 @@ html, body {height: 100%;}
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-bar-section ul li {
|
.top-bar-section ul li {
|
||||||
width: 20%;
|
width: 25%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
|
|
||||||
13
index.html
13
index.html
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
<section class="top-bar-section {{isCollapsed && 'hide_menu' || 'show_menu'}}">
|
<section class="top-bar-section {{isCollapsed && 'hide_menu' || 'show_menu'}}">
|
||||||
<ul>
|
<ul>
|
||||||
<li data-ng-repeat="item in menu" ui-route="/{{item.link}}" class="large-2 text-center" data-ng-class="{active: isActive(item)}">
|
<li data-ng-repeat="item in menu" ui-route="/{{item.link}}" class="text-center" data-ng-class="{active: isActive(item)}">
|
||||||
<a href="{{item.link}}"> <i class="{{item.icon}}"></i> {{item.title}}</a>
|
<a href="{{item.link}}"> <i class="{{item.icon}}"></i> {{item.title}}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -243,17 +243,6 @@
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/ng-template" id="peer.html">
|
|
||||||
<div class="row" ng-if="$root.wallet.requiredCopayers > $root.wallet.network.connectedCopayers().length">
|
|
||||||
<div class="large-12 columns p70l">
|
|
||||||
<p class="text-info"> <i class="fi-alert size-28"></i>
|
|
||||||
{{$root.wallet.requiredCopayers}} copayers needed for signing transactions
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ADDRESS -->
|
<!-- ADDRESS -->
|
||||||
<script type="text/ng-template" id="addresses.html">
|
<script type="text/ng-template" id="addresses.html">
|
||||||
<div class="addresses" data-ng-controller="AddressesController">
|
<div class="addresses" data-ng-controller="AddressesController">
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,8 @@
|
||||||
|
|
||||||
angular.module('copay.header').controller('HeaderController',
|
angular.module('copay.header').controller('HeaderController',
|
||||||
function($scope, $rootScope, $location, walletFactory, controllerUtils) {
|
function($scope, $rootScope, $location, walletFactory, controllerUtils) {
|
||||||
$scope.menu = [{
|
$scope.menu = [
|
||||||
'title': 'Copayers',
|
{
|
||||||
'icon': 'fi-torsos-all',
|
|
||||||
'link': '#/peer'
|
|
||||||
}, {
|
|
||||||
'title': 'Addresses',
|
'title': 'Addresses',
|
||||||
'icon': 'fi-address-book',
|
'icon': 'fi-address-book',
|
||||||
'link': '#/addresses'
|
'link': '#/addresses'
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ angular.module('copay.controllerUtils')
|
||||||
});
|
});
|
||||||
w.on('created', function(myPeerID) {
|
w.on('created', function(myPeerID) {
|
||||||
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
video.setOwnPeer(myPeerID, w, handlePeerVideo);
|
||||||
$location.path('peer');
|
$location.path('addresses');
|
||||||
$rootScope.wallet = w;
|
$rootScope.wallet = w;
|
||||||
root.updateBalance();
|
root.updateBalance();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue