remove peer tab

This commit is contained in:
Manuel Araoz 2014-04-29 19:26:12 -03:00
commit 93620fa6c0
4 changed files with 5 additions and 19 deletions

View file

@ -52,7 +52,7 @@ html, body {height: 100%;}
} }
.top-bar-section ul li { .top-bar-section ul li {
width: 20%; width: 25%;
} }
.header { .header {

View file

@ -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">

View file

@ -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'

View file

@ -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();
}); });