move to notification settings

This commit is contained in:
Javier 2016-10-31 14:08:52 -03:00
commit 2dace50816
5 changed files with 159 additions and 42 deletions

View file

@ -7,15 +7,40 @@
<ion-content>
<div class="list">
<div ng-show="PNEnabledByUser">
<div ng-if="PNEnabledByUser">
<div class="item item-divider" translate>Notifications</div>
<ion-toggle ng-model="pushNotifications.value" toggle-class="toggle-balanced" ng-change="pushNotificationsChange()">
<ion-toggle ng-model="pushNotifications.value" toggle-class="toggle-balanced" ng-change="pushNotificationsChange()" ng-if="usePushNotifications">
<span class="toggle-label" translate>Enable push notifications</span>
</ion-toggle>
<ion-toggle ng-model="emailNotifications.value" toggle-class="toggle-balanced" ng-change="emailNotificationsChange()">
<span class="toggle-label" translate>Enable email notifications</span>
</ion-toggle>
<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 {{wallet.name}}.
</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>
</div>
<div ng-show="!PNEnabledByUser && isIOSApp">
<div ng-if="!PNEnabledByUser && isIOSApp">
<div class="item item-divider" translate>Notifications</div>
<div class="padding text-light" translate>
Push notifications for {{appName}} are currently disabled. Enable them in the Settings app.