refactor settings tab
This commit is contained in:
parent
9e70821c4c
commit
41cc509d47
21 changed files with 462 additions and 252 deletions
|
|
@ -1,6 +1,89 @@
|
|||
<ion-view ng-controller="tabSettingsController" cache-view="false" ng-init="init()">
|
||||
<ion-nav-bar class="bar-stable">
|
||||
<ion-nav-title>Global Settings</ion-nav-title>
|
||||
</ion-nav-bar>
|
||||
<ion-content class="has-header">
|
||||
<div class="item item-divider">
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="item item-icon-left" ng-click="openAddressbookModal()">
|
||||
<i class="icon ion-ios-book-outline"></i>
|
||||
<span translate>Address Book</span>
|
||||
</div>
|
||||
<div class="item item-icon-left" href ui-sref="feedback">
|
||||
<i class="icon ion-ios-heart-outline"></i>
|
||||
<span translate>Feedback</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item item-divider">
|
||||
Preferences
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="item item-icon-left" href ui-sref="preferencesLanguage">
|
||||
<i class="icon ion-ios-chatbubble-outline"></i>
|
||||
<span translate>Language</span>
|
||||
<span class="item-note">
|
||||
{{currentLanguageName|translate}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item item-icon-left" href ui-sref="preferencesUnit">
|
||||
<i class="icon ion-ios-calculator-outline"></i>
|
||||
<span translate>Unit</span>
|
||||
<span class="item-note">
|
||||
{{unitName}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item item-icon-left" href ui-sref="preferencesAltCurrency">
|
||||
<i class="icon ion-social-usd-outline"></i>
|
||||
<span translate>Alternative Currency</span>
|
||||
<span class="item-note">
|
||||
{{selectedAlternative.name}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="item item-icon-left" href ui-sref="preferencesFee">
|
||||
<i class="icon ion-ios-film-outline"></i>
|
||||
<span translate>Bitcoin Network Fee Policy</span>
|
||||
<span class="item-note">
|
||||
{{feeOpts[currentFeeLevel]|translate}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list" ng-show="usePushNotifications && PNEnabledByUser">
|
||||
<div class="item item-divider">
|
||||
Notifications
|
||||
</div>
|
||||
<ion-toggle ng-model="pushNotifications" toggle-class="toggle-balanced" ng-change="pushNotificationsChange()">
|
||||
<span class="toggle-label" translate>Enable push notifications</span>
|
||||
</ion-toggle>
|
||||
<div ng-show="usePushNotifications && !PNEnabledByUser && isIOSApp">
|
||||
<div translate>Push notifications for Copay are currently disabled. Enable them in the Settings app.</div>
|
||||
<ul ng-click="openSettings()">
|
||||
<li ng-style="{'color':index.backgroundColor}" translate>Open Settings app</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item item-divider">
|
||||
Exchanges
|
||||
</div>
|
||||
<ion-toggle ng-show="!isWP" ng-model="glideraEnabled" toggle-class="toggle-balanced" ng-change="glideraChange()">
|
||||
<span class="toggle-label" translate>Enable Glidera Service</span>
|
||||
</ion-toggle>
|
||||
|
||||
<ion-view view-title="Home">
|
||||
<ion-content class="Settings">
|
||||
<h2>Welcome to Settings</h2>
|
||||
<ion-toggle ng-show="!isWP" ng-model="coinbaseEnabled" toggle-class="toggle-balanced" ng-change="coinbaseChange()">
|
||||
<span class="toggle-label" translate>Enable Coinbase Service</span>
|
||||
</ion-toggle>
|
||||
</div>
|
||||
<div class="item item-divider">
|
||||
Others
|
||||
</div>
|
||||
<div class="list">
|
||||
<ion-toggle ng-model="spendUnconfirmed" toggle-class="toggle-balanced" ng-change="spendUnconfirmedChange()">
|
||||
<span class="toggle-label" translate>Use Unconfirmed Funds</span>
|
||||
</ion-toggle>
|
||||
<div class="item item-icon-left" href ui-sref="about">
|
||||
<i class="icon ion-ios-film-outline"></i>
|
||||
<span translate>About Copay</span>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
</ion-view>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue