2017-06-28 16:28:17 -03:00
|
|
|
<ion-view id="tab-notifications" class="settings" show-tabs>
|
2016-09-28 10:50:33 -03:00
|
|
|
<ion-nav-bar class="bar-royal">
|
|
|
|
|
<ion-nav-title>{{'Notifications' | translate}}</ion-nav-title>
|
|
|
|
|
<ion-nav-back-button>
|
|
|
|
|
</ion-nav-back-button>
|
|
|
|
|
</ion-nav-bar>
|
|
|
|
|
|
|
|
|
|
<ion-content>
|
|
|
|
|
<div class="list">
|
2016-10-31 16:52:16 -03:00
|
|
|
<div ng-if="PNEnabledByUser">
|
2016-10-31 14:08:52 -03:00
|
|
|
<ion-toggle ng-model="pushNotifications.value" toggle-class="toggle-balanced" ng-change="pushNotificationsChange()" ng-if="usePushNotifications">
|
2016-09-28 10:50:33 -03:00
|
|
|
<span class="toggle-label" translate>Enable push notifications</span>
|
|
|
|
|
</ion-toggle>
|
|
|
|
|
</div>
|
|
|
|
|
|
2016-10-31 14:08:52 -03:00
|
|
|
<div ng-if="!PNEnabledByUser && isIOSApp">
|
2016-09-28 10:50:33 -03:00
|
|
|
<div class="padding text-light" translate>
|
2016-10-08 21:12:30 -03:00
|
|
|
Push notifications for {{appName}} are currently disabled. Enable them in the Settings app.
|
2016-09-28 10:50:33 -03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-10-31 16:52:16 -03:00
|
|
|
|
2017-07-14 15:45:18 -03:00
|
|
|
<div ng-if="usePushNotifications && pushNotifications.value">
|
|
|
|
|
<ion-toggle ng-model="confirmedTxsNotifications.value" toggle-class="toggle-balanced" ng-change="confirmedTxsNotificationsChange()">
|
2017-07-14 10:18:36 -03:00
|
|
|
<span class="toggle-label" translate>Notify me when transactions are confirmed</span>
|
|
|
|
|
</ion-toggle>
|
|
|
|
|
</div>
|
|
|
|
|
|
2016-10-31 16:52:16 -03:00
|
|
|
<ion-toggle ng-model="emailNotifications.value" toggle-class="toggle-balanced" ng-change="emailNotificationsChange()">
|
|
|
|
|
<span class="toggle-label" translate>Enable email notifications</span>
|
|
|
|
|
</ion-toggle>
|
|
|
|
|
|
2018-02-26 11:47:11 +05:00
|
|
|
<ion-toggle ng-model="sounds.value" toggle-class="toggle-balanced" ng-change="soundNotificationsChange()">
|
|
|
|
|
<span class="toggle-label" translate>Enable sound</span>
|
|
|
|
|
</ion-toggle>
|
|
|
|
|
|
2016-10-31 16:52:16 -03:00
|
|
|
<div ng-if="emailNotifications.value">
|
|
|
|
|
<div class="settings-explanation">
|
|
|
|
|
<div class="settings-description" translate>
|
|
|
|
|
You'll receive email notifications about payments sent and received from your wallets.
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<form name="emailForm" ng-submit="save()" novalidate>
|
|
|
|
|
<div class="list settings-input-group">
|
|
|
|
|
<label class="item item-input item-stacked-label">
|
|
|
|
|
<span class="input-label" translate>Email Address</span>
|
|
|
|
|
<input type="email" id="email" name="email" ng-model="newEmail.value" required></input>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<button type="submit"
|
|
|
|
|
class="button button-standard button-primary"
|
|
|
|
|
ng-disabled="emailForm.$invalid || (newEmail.value == latestEmail.value)" translate>Save
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2017-07-13 11:12:15 -03:00
|
|
|
|
|
|
|
|
|
2016-09-28 10:50:33 -03:00
|
|
|
</div>
|
|
|
|
|
</ion-content>
|
|
|
|
|
</ion-view>
|