removed the wallets sidebar
This commit is contained in:
parent
e0e0f9b935
commit
c5cf104e86
5 changed files with 65 additions and 80 deletions
13
index.html
13
index.html
|
|
@ -29,7 +29,6 @@
|
||||||
<body
|
<body
|
||||||
ng-controller="IndexController"
|
ng-controller="IndexController"
|
||||||
ng-swipe-disable-mouse
|
ng-swipe-disable-mouse
|
||||||
ng-swipe-left="swipe()"
|
|
||||||
ng-swipe-right="swipe(true)">
|
ng-swipe-right="swipe(true)">
|
||||||
|
|
||||||
<div id="loading" class="loadingpage">
|
<div id="loading" class="loadingpage">
|
||||||
|
|
@ -65,13 +64,14 @@
|
||||||
<section class="left-small">
|
<section class="left-small">
|
||||||
<a class="left-off-canvas-toggle menu-icon" ><span></span></a>
|
<a class="left-off-canvas-toggle menu-icon" ><span></span></a>
|
||||||
</section>
|
</section>
|
||||||
<section class="right-small" ng-show="$root.iden && $root.iden.getWallets().length >1">
|
|
||||||
<a class="right-off-canvas-toggle p10"><i class="icon-wallet size-24"></i></a>
|
<section class="right-small" ng-show="$root.iden && $root.wallet.isComplete()">
|
||||||
|
<a class="p10" ng-click="$root.go('more')"><i class="fi-widget size-24"></i></a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="middle tab-bar-section">
|
<section class="middle tab-bar-section">
|
||||||
<h1 class="title">
|
<h1 class="title ellipsis" ng-show="$root.iden && $root.wallet">
|
||||||
<img src="img/logo-negative-beta.svg" alt="Copay" width="60">
|
{{$root.wallet.getName()}}
|
||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
@ -80,9 +80,6 @@
|
||||||
<div ng-include="'views/includes/sidebar-mobile.html'"></div>
|
<div ng-include="'views/includes/sidebar-mobile.html'"></div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<nav class="right-off-canvas-menu" ng-show="$root.iden && $root.iden.getWallets().length >1">
|
|
||||||
<div ng-include="'views/includes/walletbar-mobile.html'"></div>
|
|
||||||
</nav>
|
|
||||||
<div
|
<div
|
||||||
ng-if="$root.iden"
|
ng-if="$root.iden"
|
||||||
ng-include="'views/includes/sidebar.html'"
|
ng-include="'views/includes/sidebar.html'"
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,10 @@ angular
|
||||||
.when('/profile', {
|
.when('/profile', {
|
||||||
templateUrl: 'views/profile.html',
|
templateUrl: 'views/profile.html',
|
||||||
logged: true
|
logged: true
|
||||||
|
})
|
||||||
|
.when('/add', {
|
||||||
|
templateUrl: 'views/add.html',
|
||||||
|
logged: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (config.developmentFeatures) {
|
if (config.developmentFeatures) {
|
||||||
|
|
|
||||||
11
views/add.html
Normal file
11
views/add.html
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<a title="Create new wallet" ng-click="$root.go('create')">
|
||||||
|
Create new wallet
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a title="Join shared wallet" ng-click="$root.go('join')">
|
||||||
|
Join shared wallet
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a title="Import wallet" ng-click="$root.go('import')">
|
||||||
|
Import wallet
|
||||||
|
</a>
|
||||||
|
|
@ -1,43 +1,48 @@
|
||||||
<div>
|
<header>
|
||||||
<ul class="off-canvas-list">
|
<a ng-click="$root.go('profile')" class="db p20h nav-item text-center" title="Create new wallet">
|
||||||
<li>
|
<div class="photo-container">
|
||||||
<a ng-click="$root.go('profile')" class="db p20h nav-item text-center" title="Create new wallet">
|
<img gravatar-src="'{{$root.iden.getName()}}'" gravatar-size="35">
|
||||||
<div class="photo-container m20t">
|
</div>
|
||||||
<img gravatar-src="'{{$root.iden.getName()}}'" gravatar-size="35">
|
<p class="text-black m5">{{$root.iden.getName()}}</p>
|
||||||
</div>
|
<span class="db text-gray size-10">
|
||||||
<p class="text-black m5">{{$root.iden.getName()}}</p>
|
<i class="fi-torso"></i> {{'View My Profile' | translate }}
|
||||||
<span class="db text-gray size-10">
|
</span>
|
||||||
<i class="fi-torso"></i> {{'View My Profile' | translate }}
|
</a>
|
||||||
</span>
|
</header>
|
||||||
|
<ul class="side-nav wallets off-canvas-list" ng-show="wallets[0]">
|
||||||
</a>
|
<li
|
||||||
|
ng-repeat="item in wallets track by $index"
|
||||||
</li>
|
ng-class="{'selected': item.id == $root.wallet.id}"
|
||||||
<li>
|
class="nav-item" ng-click="switchWallet(item.id)" >
|
||||||
<a ng-click="$root.go('create')" class="db p20h nav-item" title="Create new wallet">
|
<div class="col1">
|
||||||
<i class="size-24 m20r fi-plus"></i> {{'Create new wallet' | translate }}</a>
|
<div class="avatar-wallet">{{(item.name || item.id) | limitTo: 1}}</div>
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a ng-click="$root.go('join')" class="db p20h nav-item" title="Join shared wallet">
|
|
||||||
<i class="size-24 m20r fi-torsos-all"></i> {{'Join shared wallet' | translate }}</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a ng-click="$root.go('import')" class="db p20h nav-item" title="Import wallet">
|
|
||||||
<i class="size-24 m20r fi-download"></i> {{'Import a wallet' | translate }}</a>
|
|
||||||
</li>
|
|
||||||
<li ng-if="$root.wallet">
|
|
||||||
<a ng-click="$root.go('more')" class="db p20h nav-item" title="Settings">
|
|
||||||
<i class="size-24 m20r fi-widget"></i> {{'Wallet Settings' | translate }}</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a class="db p20h nav-item" title="Close" ng-click="signout()">
|
|
||||||
<span ng-if="!$root.hasPin"><i class="size-24 m20r fi-power"></i> {{'Close'|translate}}</span>
|
|
||||||
<span ng-if="$root.hasPin"><i class="size-24 m20r fi-lock"></i> {{'Lock'|translate}}</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="text-gray size-12 text-center columns">
|
|
||||||
<div ng-include="'views/includes/version.html'"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col2">
|
||||||
|
<a class="size-12 wallet-item">
|
||||||
|
<div class="oh">
|
||||||
|
<div class="right size-10 type-wallet">
|
||||||
|
[ {{item.requiredCopayers}} of {{item.totalCopayers}} ]</div>
|
||||||
|
<div class="ellipsis name-wallet">{{item.name || item.id}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="oh">
|
||||||
|
<span ng-if="item.isComplete() && item.balanceInfo.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
|
||||||
|
<div ng-if="item.isComplete() && !item.balanceInfo.updatingBalance" data-options="disable_for_touch:true">
|
||||||
|
<b class="m5r size-12">{{item.balanceInfo.totalBalance || 0}} {{item.settings.unitName}}</b>
|
||||||
|
<span class="alt-currency size-10">{{item.balanceInfo.totalBalanceAlternative}} {{item.balanceInfo.alternativeIsoCode}}</span>
|
||||||
|
</div>
|
||||||
|
<span ng-if="!item.isComplete()">Waiting for copayers...</span>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a class="db" title="Add wallet" ng-click="$root.go('add')">
|
||||||
|
Add wallet
|
||||||
|
</a>
|
||||||
|
<a class="db" title="Close" ng-click="signout()">
|
||||||
|
<span ng-if="!$root.hasPin"><i class="size-24 m20r fi-power"></i> {{'Close'|translate}}</span>
|
||||||
|
<span ng-if="$root.hasPin"><i class="size-24 m20r fi-lock"></i> {{'Lock'|translate}}</span>
|
||||||
|
</a>
|
||||||
|
<div class="text-gray size-12 text-center columns">
|
||||||
|
<div ng-include="'views/includes/version.html'"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
<div>
|
|
||||||
<header ng-show="$root.wallet">
|
|
||||||
<h1>My wallets</h1>
|
|
||||||
</header>
|
|
||||||
<ul class="side-nav wallets off-canvas-list" ng-show="wallets[0]">
|
|
||||||
<li
|
|
||||||
ng-repeat="item in wallets track by $index"
|
|
||||||
ng-class="{'selected': item.id == $root.wallet.id}"
|
|
||||||
class="nav-item" ng-click="switchWallet(item.id)" >
|
|
||||||
<div class="col1">
|
|
||||||
<div class="avatar-wallet">{{(item.name || item.id) | limitTo: 1}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="col2">
|
|
||||||
<a class="size-12 wallet-item">
|
|
||||||
<div class="oh">
|
|
||||||
<div class="right size-10 type-wallet">
|
|
||||||
[ {{item.requiredCopayers}} of {{item.totalCopayers}} ]</div>
|
|
||||||
<div class="ellipsis name-wallet">{{item.name || item.id}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="oh">
|
|
||||||
<span ng-if="item.isComplete() && item.balanceInfo.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
|
|
||||||
<div ng-if="item.isComplete() && !item.balanceInfo.updatingBalance" data-options="disable_for_touch:true">
|
|
||||||
<b class="m5r size-12">{{item.balanceInfo.totalBalance || 0}} {{item.settings.unitName}}</b>
|
|
||||||
<span class="alt-currency size-10">{{item.balanceInfo.totalBalanceAlternative}} {{item.balanceInfo.alternativeIsoCode}}</span>
|
|
||||||
</div>
|
|
||||||
<span ng-if="!item.isComplete()">Waiting for copayers...</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue