zgo/src/app/settings/settings.component.html

54 lines
1.5 KiB
HTML
Raw Normal View History

2021-10-28 20:34:48 +00:00
<div class="settings-title">Settings</div>
2021-10-28 20:34:48 +00:00
<div class="container">
<mat-dialog-content [formGroup]="settingsForm">
<mat-form-field class="settings-field" [style.width.%]="100">
<mat-label>Name</mat-label>
<input matInput
width="100%"
placeholder="Name"
formControlName="name">
</mat-form-field>
<mat-form-field [style.width.%]="100" >
<mat-label>Currency</mat-label>
<mat-select formControlName="currency">
<mat-option *ngFor="let coin of coins"
[value]="coin.symbol">
{{coin.label}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-slide-toggle formControlName="useZats"
(change)="onChange($event)">
Use zatoshis?
</mat-slide-toggle>
2022-07-20 15:31:23 +00:00
<mat-slide-toggle formControlName="useVKey"
(change)="onChangeVKeyOn($event)">
Activate payment confirmation?
</mat-slide-toggle>
<pre></pre>
<mat-form-field [style.width.%]="100">
<mat-label>Viewing key</mat-label>
<input matInput placeholder="Your wallet viewing key"
formControlName="vKey">
</mat-form-field>
</mat-dialog-content>
<mat-dialog-actions style="display: flex;
justify-content: space-between;
align-items: center;
margin-top: 12px;">
<button mat-raised-button
(click)="close()">
Cancel
</button>
<button mat-raised-button
color="primary"
(click)="save()">
Save
</button>
</mat-dialog-actions>
2022-07-20 15:31:23 +00:00
</div>