mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-18 23:16:49 +00:00
81 lines
4.1 KiB
HTML
81 lines
4.1 KiB
HTML
<div class="loading-spinner" *ngIf="settings === null">
|
|
<mat-progress-spinner mode="indeterminate"></mat-progress-spinner>
|
|
</div>
|
|
<div *ngIf="settings !== null">
|
|
|
|
<button (click)="saveSettings()" mat-fab color="accent" class="mat-fab mat-fab-bottom-right"><mat-icon >save</mat-icon></button>
|
|
|
|
|
|
<mat-accordion>
|
|
<mat-expansion-panel *ngIf="settings.SMSGlobal != null">
|
|
<mat-expansion-panel-header>
|
|
<mat-panel-title>
|
|
SMS Global
|
|
</mat-panel-title>
|
|
<mat-panel-description>
|
|
SMS configuration and contact management
|
|
</mat-panel-description>
|
|
</mat-expansion-panel-header>
|
|
<form class="form-content">
|
|
<mat-checkbox name="smsEnabled" [(ngModel)]="settings.SMSGlobal.Enabled">Enabled</mat-checkbox>
|
|
<div mat-line></div>
|
|
<mat-form-field>
|
|
<input matInput name="smsUsername" [(ngModel)]="settings.SMSGlobal.Username" [disabled]="!settings?.SMSGlobal.Enabled" placeholder="Username">
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<input matInput name="smsPassword" [(ngModel)]="settings.SMSGlobal.Password" [disabled]="!settings?.SMSGlobal.Enabled" placeholder="Password">
|
|
</mat-form-field>
|
|
|
|
<div *ngFor="let contact of settings.SMSGlobal?.Contacts">
|
|
<mat-checkbox name="contactEnabled" [disabled]="!settings?.SMSGlobal.Enabled" [(ngModel)]="contact.Enabled">Enabled</mat-checkbox>
|
|
<div mat-line></div>
|
|
<mat-form-field>
|
|
<input matInput name="contactUsername" [(ngModel)]="contact.Name" [disabled]="!settings.SMSGlobal.Enabled || !contact.Enabled" placeholder="Contact Name" />
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<input matInput name="contactPassword" [(ngModel)]="contact.Number" [disabled]="!settings.SMSGlobal.Enabled || !contact.Enabled" placeholder="Contact Number" />
|
|
</mat-form-field>
|
|
</div>
|
|
</form>
|
|
</mat-expansion-panel>
|
|
|
|
|
|
<mat-expansion-panel *ngFor="let exchange of settings?.Exchanges">
|
|
<mat-expansion-panel-header>
|
|
<mat-panel-title>
|
|
{{exchange.Name}}
|
|
</mat-panel-title>
|
|
<mat-panel-description>
|
|
Exchange Settings
|
|
</mat-panel-description>
|
|
</mat-expansion-panel-header>
|
|
<form class="form-content">
|
|
<mat-checkbox name="exchangeEnabled" [(ngModel)]="exchange.Enabled">Enabled</mat-checkbox>
|
|
<div mat-line></div>
|
|
<div *ngIf="exchange.Enabled">
|
|
<mat-form-field>
|
|
<input matInput name="apiKey" [(ngModel)]="exchange.APIKey" [disabled]="!exchange.Enabled" placeholder="API Key*">
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<input matInput name="apiSecretKey" [(ngModel)]="exchange.APISecret" [disabled]="!exchange.Enabled" placeholder="API Secret Key*">
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<input matInput name="apiClientId" [(ngModel)]="exchange.ClientID" [disabled]="!exchange.Enabled" placeholder="API ClientID">
|
|
</mat-form-field>
|
|
<div mat-line></div>
|
|
|
|
<mat-panel-description>
|
|
Enabled Currency pairs
|
|
</mat-panel-description>
|
|
<div mat-line></div>
|
|
<mat-list>
|
|
<mat-list-item *ngFor="let currency of exchange.AvailablePairs.split(',')">
|
|
<mat-checkbox name="availableCurrency" [disabled]="true || !exchange.Enabled">{{currency}}</mat-checkbox>
|
|
</mat-list-item>
|
|
</mat-list>
|
|
</div>
|
|
</form>
|
|
</mat-expansion-panel>
|
|
</mat-accordion>
|
|
|
|
</div> |