UNPKG

copay-crown

Version:

A Secure Crown Wallet

59 lines (47 loc) 1.88 kB
<ion-header> <ion-navbar> <ion-title>{{'Notifications' | translate}}</ion-title> </ion-navbar> </ion-header> <ion-content> <ion-item-divider></ion-item-divider> <ion-list> <div *ngIf="usePushNotifications"> <ion-item> <ion-label>{{ 'Enable push notifications' | translate }}</ion-label> <ion-toggle [(ngModel)]="pushNotifications" (ionChange)="pushNotificationsChange()"></ion-toggle> </ion-item> </div> <ion-item-divider *ngIf="!usePushNotifications && isIOSApp"> <span translate> Push notifications for {{appName}} are currently disabled. Enable them in the Settings app. </span> </ion-item-divider> <div *ngIf="usePushNotifications && pushNotifications"> <ion-item> <ion-label>{{ 'Notify me when transactions are confirmed' | translate }}</ion-label> <ion-toggle [(ngModel)]="confirmedTxsNotifications" (ionChange)="confirmedTxsNotificationsChange()"></ion-toggle> </ion-item> </div> <ion-item> <ion-label>{{ 'Enable email notifications' | translate }}</ion-label> <ion-toggle [(ngModel)]="emailNotifications" (ionChange)="emailNotificationsChange()"></ion-toggle> </ion-item> <div *ngIf="emailNotifications"> <ion-item-divider text-wrap> <span translate> You'll receive email notifications about payments sent and received from your wallets. </span> </ion-item-divider> <form [formGroup]="emailForm"> <ion-item> <ion-label stacked>{{ 'Email Address' | translate }}</ion-label> <ion-input formControlName="email" type="email"></ion-input> </ion-item> <button ion-button clear block (click)="saveEmail()" [disabled]="emailForm.invalid"> {{ 'Save' | translate }} </button> </form> </div> </ion-list> </ion-content>