move wallet preferences to global settings and show tabs on activity view
This commit is contained in:
parent
352cff890f
commit
3b419c616a
19 changed files with 256 additions and 238 deletions
|
|
@ -10,17 +10,17 @@
|
|||
|
||||
<ion-content>
|
||||
<ion-list>
|
||||
<ion-item class="item-remove-animate item-icon-right" type="item-text-wrap" ui-sref="add.create.personal">
|
||||
<ion-item class="item-remove-animate item-icon-right" type="item-text-wrap" ui-sref="tabs.create.personal">
|
||||
<h2 translate>Create new wallet</h2>
|
||||
<i class="icon ion-chevron-right icon-accessory"></i>
|
||||
</ion-item>
|
||||
|
||||
<ion-item class="item-remove-animate item-icon-right" type="item-text-wrap" ui-sref="add.join">
|
||||
<ion-item class="item-remove-animate item-icon-right" type="item-text-wrap" ui-sref="tabs.join">
|
||||
<h2 translate>Join shared wallet</h2>
|
||||
<i class="icon ion-chevron-right icon-accessory"></i>
|
||||
</ion-item>
|
||||
|
||||
<ion-item class="item-remove-animate item-icon-right" type="item-text-wrap" ui-sref="add.import.phrase">
|
||||
<ion-item class="item-remove-animate item-icon-right" type="item-text-wrap" ui-sref="tabs.import.phrase">
|
||||
<h2 translate>Import wallet</h2>
|
||||
<i class="icon ion-chevron-right icon-accessory"></i>
|
||||
</ion-item>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<ion-view >
|
||||
<ion-tabs class="tabs-striped tabs-color-positive tabs-color-active-positive tabs-top">
|
||||
|
||||
<ion-tab title="Personal Wallet" ui-sref="add.create.personal">
|
||||
<ion-tab title="Personal Wallet" ui-sref="tabs.create.personal">
|
||||
<ion-nav-view name="tab-create-personal"></ion-nav-view>
|
||||
</ion-tab>
|
||||
|
||||
<ion-tab title="Shared Wallet" ui-sref="add.create.shared">
|
||||
<ion-tab title="Shared Wallet" ui-sref="tabs.create.shared">
|
||||
<ion-nav-view name="tab-create-shared"></ion-nav-view>
|
||||
</ion-tab>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<ion-view >
|
||||
<ion-tabs class="tabs-striped tabs-color-positive tabs-color-active-positive tabs-top">
|
||||
|
||||
<ion-tab title="File/Text" ui-sref="wallet.export.file">
|
||||
<ion-tab title="File/Text" ui-sref="tabs.preferences.export.file">
|
||||
<ion-nav-view name="tab-export-file"></ion-nav-view>
|
||||
</ion-tab>
|
||||
|
||||
<ion-tab title="QR Code" ui-sref="wallet.export.qrCode">
|
||||
<ion-tab title="QR Code" ui-sref="tabs.preferences.export.qrCode">
|
||||
<ion-nav-view name="tab-export-qrCode"></ion-nav-view>
|
||||
</ion-tab>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
<ion-view >
|
||||
<ion-tabs class="tabs-striped tabs-color-positive tabs-color-active-positive tabs-top">
|
||||
|
||||
<ion-tab title="Recovery Phrare" ui-sref="add.import.phrase">
|
||||
<ion-tab title="Recovery Phrare" ui-sref="tabs.import.phrase">
|
||||
<ion-nav-view name="tab-import-phrase"></ion-nav-view>
|
||||
</ion-tab>
|
||||
|
||||
<ion-tab title="File/Text" ui-sref="add.import.file">
|
||||
<ion-tab title="File/Text" ui-sref="tabs.import.file">
|
||||
<ion-nav-view name="tab-import-file"></ion-nav-view>
|
||||
</ion-tab>
|
||||
|
||||
<ion-tab title="Hardware Wallet" ui-sref="add.import.hardware">
|
||||
<ion-tab title="Hardware Wallet" ui-sref="tabs.import.hardware">
|
||||
<ion-nav-view name="tab-import-hardware"></ion-nav-view>
|
||||
</ion-tab>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<ion-view>
|
||||
<ion-nav-bar class="bar-stable">
|
||||
<ion-nav-buttons side="primary">
|
||||
<button class="button no-border" ui-sref="add.main">
|
||||
<button class="button no-border" ui-sref="tabs.add">
|
||||
<i class="icon ion-chevron-left"></i> Back
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
|
|
@ -133,4 +133,3 @@
|
|||
</form>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<div class="item item-divider">
|
||||
Preferences
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.preferencesAlias">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.preferencesAlias">
|
||||
<span translate>Wallet Name</span>
|
||||
<span class="item-note">
|
||||
{{alias||wallet.walletName}}
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
{{wallet.externalSource}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.preferencesColor">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.preferencesColor">
|
||||
<span ng-style="{'color': wallet.color}">█</span>
|
||||
<span translate>Wallet Color</span>
|
||||
<span class="item-note">
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.preferencesEmail">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.preferencesEmail">
|
||||
<span translate>Email Notifications</span>
|
||||
<span class="item-note">
|
||||
<span ng-if="!wallet.email" translate>Disabled</span>
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
<div class="item item-divider">
|
||||
Security
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.backup" ng-hide="wallet.isPrivKeyExternal()">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.backup" ng-hide="wallet.isPrivKeyExternal()">
|
||||
<span translate>Backup</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
|
|
@ -61,14 +61,14 @@
|
|||
<span class="toggle-label" translate>Request Fingerprint</span>
|
||||
</ion-toggle>
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.deleteWords" ng-show ="!deleted">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.deleteWords" ng-show ="!deleted">
|
||||
<span translate>Delete recovery phrase</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
<div class="item item-divider">
|
||||
Advanced
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.preferencesAdvanced">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.preferencesAdvanced">
|
||||
<span translate>Advanced</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -26,15 +26,15 @@
|
|||
</div>
|
||||
<div class="item item-divider">
|
||||
</div>
|
||||
<div class="item item-icon-left" href ui-sref="settings.termsOfUse">
|
||||
<div class="item item-icon-left" href ui-sref="tabs.termsOfUse">
|
||||
<i class="icon ion-ios-bell-outline"></i>
|
||||
<span translate>Terms of Use</span>
|
||||
</div>
|
||||
<div class="item item-icon-left" href ui-sref="settings.translators">
|
||||
<div class="item item-icon-left" href ui-sref="tabs.translators">
|
||||
<i class="icon ion-ios-bell-outline"></i>
|
||||
<span translate>Translators</span>
|
||||
</div>
|
||||
<div class="item item-icon-left" href ui-sref="settings.logs">
|
||||
<div class="item item-icon-left" href ui-sref="tabs.logs">
|
||||
<i class="icon ion-ios-bell-outline"></i>
|
||||
<span translate>Session log</span>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -9,27 +9,27 @@
|
|||
<div class="list">
|
||||
<div class="item item-divider">
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.information">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.information">
|
||||
<span translate>Wallet Information</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
<div class="item item-icon-right" ng-show="index.network == 'livenet'" href ui-sref="wallet.paperWallet">
|
||||
<div class="item item-icon-right" ng-show="index.network == 'livenet'" href ui-sref="tabs.preferences.paperWallet">
|
||||
<span translate>Sweep paper wallet</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.export.file">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.export.file">
|
||||
<span translate>Export Wallet</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.preferencesBwsUrl">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.preferencesBwsUrl">
|
||||
<span translate>Wallet Service URL</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.preferencesHistory">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.preferencesHistory">
|
||||
<span translate>Transaction History</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
<div class="item item-icon-right" href ui-sref="wallet.delete">
|
||||
<div class="item item-icon-right" href ui-sref="tabs.preferences.delete">
|
||||
<span translate>Delete Wallet</span>
|
||||
<i class="icon ion-ios-arrow-right"></i>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<ion-view>
|
||||
<ion-nav-bar class="bar-stable">
|
||||
<ion-nav-buttons side="primary">
|
||||
<button class="button no-border" ui-sref="add.main">
|
||||
<button class="button no-border" ui-sref="tabs.add">
|
||||
<i class="icon ion-chevron-left"></i> Back
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<ion-nav-bar class="bar-stable">
|
||||
<ion-nav-buttons side="primary">
|
||||
<button class="button no-border" ui-sref="add.main">
|
||||
<button class="button no-border" ui-sref="tabs.add">
|
||||
<i class="icon ion-chevron-left"></i> Back
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<ion-nav-bar class="bar-stable">
|
||||
<ion-nav-title>Export Wallet</ion-nav-title>
|
||||
<ion-nav-buttons side="primary">
|
||||
<button class="button no-border" ui-sref="wallet.preferencesAdvanced">
|
||||
<button class="button no-border" ui-sref="tabs.preferences.preferencesAdvanced">
|
||||
<i class="icon ion-chevron-left"></i> Back
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<ion-nav-bar class="bar-stable">
|
||||
<ion-nav-title>Export Wallet</ion-nav-title>
|
||||
<ion-nav-buttons side="primary">
|
||||
<button class="button no-border" ui-sref="wallet.preferencesAdvanced">
|
||||
<button class="button no-border" ui-sref="tabs.preferences.preferencesAdvanced">
|
||||
<i class="icon ion-chevron-left"></i> Back
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@
|
|||
<div class="list card" ng-hide="!wallets[0]">
|
||||
<div class="item item-icon-right item-heading">
|
||||
Wallets
|
||||
<a ui-sref="add.main"><i class="icon ion-ios-plus-empty list-add-button"></i></a>
|
||||
<a ui-sref="tabs.add"><i class="icon ion-ios-plus-empty list-add-button"></i></a>
|
||||
</div>
|
||||
<a ng-repeat="wallet in wallets track by $index"
|
||||
class="item item-icon-left item-big-icon-left item-icon-right"
|
||||
ui-sref="wallet.details({'walletId': wallet.id})">
|
||||
ui-sref="tabs.details({'walletId': wallet.id})">
|
||||
<i class="icon big-icon-svg">
|
||||
<img src="img/icon-wallet.svg" ng-style="{'background-color': wallet.color}"/>
|
||||
</i>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<div class="item item-divider">Preferences</div>
|
||||
|
||||
<div class="item item-icon-left" href ui-sref="settings.language">
|
||||
<div class="item item-icon-left" href ui-sref="tabs.language">
|
||||
<i class="icon ion-ios-chatbubble-outline"></i>
|
||||
<span translate>Language</span>
|
||||
<span class="item-note">
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
</span>
|
||||
</div>
|
||||
|
||||
<div class="item item-icon-left" href ui-sref="settings.unit">
|
||||
<div class="item item-icon-left" href ui-sref="tabs.unit">
|
||||
<i class="icon ion-ios-calculator-outline"></i>
|
||||
<span translate>Unit</span>
|
||||
<span class="item-note">
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
</span>
|
||||
</div>
|
||||
|
||||
<div class="item item-icon-left" href ui-sref="settings.altCurrency">
|
||||
<div class="item item-icon-left" href ui-sref="tabs.altCurrency">
|
||||
<i class="icon ion-social-usd-outline"></i>
|
||||
<span translate>Alternative Currency</span>
|
||||
<span class="item-note">
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
</span>
|
||||
</div>
|
||||
|
||||
<div class="item item-icon-left" href ui-sref="settings.fee">
|
||||
<div class="item item-icon-left" href ui-sref="tabs.fee">
|
||||
<i class="icon ion-ios-film-outline"></i>
|
||||
<span translate>Bitcoin Network Fee Policy</span>
|
||||
<span class="item-note">
|
||||
|
|
@ -77,9 +77,26 @@
|
|||
<span class="toggle-label" translate>Use Unconfirmed Funds</span>
|
||||
</ion-toggle>
|
||||
|
||||
<div class="item item-icon-left" href ui-sref="settings.about">
|
||||
<div class="list">
|
||||
<div class="item item-divider">Wallets Settings</div>
|
||||
<div ng-repeat="item in wallets track by $index">
|
||||
<div class="item item-icon-left" href ui-sref="tabs.preferences.main({'walletId': item.id})">
|
||||
<i class="icon ion-briefcase size-21" ng-style="{'color':item.color}"></i>
|
||||
{{item.name || item.id}}
|
||||
<span ng-show="item.n > 1" class="text-light">
|
||||
{{item.m}}-of-{{item.n}}
|
||||
</span>
|
||||
<span class="badge badge-assertive" ng-show="!item.isComplete()" translate>
|
||||
Incomplete
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item item-divider"></div>
|
||||
<div class="item item-icon-left" href ui-sref="tabs.about">
|
||||
<i class="icon ion-ios-film-outline"></i>
|
||||
<span translate>About Copay</span>
|
||||
<span translate>About Bitpay Wallet</span>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
|
|
|||
|
|
@ -3,14 +3,9 @@
|
|||
<ion-view>
|
||||
<ion-nav-bar class="bar-stable">
|
||||
<ion-nav-title>{{wallet.name}}</ion-nav-title>
|
||||
<ion-nav-buttons side="primary">
|
||||
<button class="button no-border" ui-sref="tabs.home">
|
||||
Close
|
||||
</button>
|
||||
</ion-nav-buttons>
|
||||
<ion-nav-buttons side="secondary">
|
||||
<button class="button button-icon icon ion-ios-settings" ui-sref="wallet.preferences"></button>
|
||||
</ion-nav-buttons>
|
||||
<ion-nav-back-button>
|
||||
{{'Back' | translate}}
|
||||
</ion-nav-back-button>
|
||||
</ion-nav-bar>
|
||||
|
||||
<ion-content ng-controller="walletDetailsController" ng-init="init()" delegate-handle="my-handle">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue