You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
2.2 KiB
HTML
27 lines
2.2 KiB
HTML
<div [perfectScrollbar] fxLayout="column" fxFlex="100">
|
|
<div fxFlex="100" class="alert alert-info mt-1">
|
|
<fa-icon [icon]="faInfoCircle" class="mr-1 alert-icon"></fa-icon>
|
|
<span>Please ensure that <strong>boltzd</strong> is running and accessible to RTL before enabling this service. Click <strong><a href="https://lnd.docs.boltz.exchange/en/latest/" target="_blank">here</a></strong> to learn more about the installation.</span>
|
|
</div>
|
|
<form fxLayout="column" fxFlex="100" fxLayoutAlign="start stretch" class="settings-container page-sub-title-container mt-1" #form="ngForm">
|
|
<div fxLayout="column" fxFlex="50" fxLayoutAlign="start stretch">
|
|
<mat-slide-toggle autoFocus class="mb-1" tabindex="1" color="primary" [(ngModel)]="enableBoltz" (change)="onEnableServiceChanged($event)" name="boltz">Enable Boltz Service</mat-slide-toggle>
|
|
<mat-form-field class="mb-2">
|
|
<input matInput placeholder="Boltz Server URL" type="text" id="boltzServerUrl" [(ngModel)]="serverUrl" name="srvrUrl" #srvrUrl="ngModel" tabindex="2" [required]="enableBoltz" [disabled]="!enableBoltz">
|
|
<mat-hint>Service url for boltz server REST APIs, eg. https://localhost:9003</mat-hint>
|
|
<mat-error *ngIf="(!serverUrl || serverUrl.trim() === '') && enableBoltz">Boltz server URL is required.</mat-error>
|
|
<mat-error *ngIf="srvrUrl?.errors?.invalid && enableBoltz">Specify the boltz server url with 'https://'.</mat-error>
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<input matInput placeholder="Boltz Macaroon Path" type="text" id="boltzMacaroonPath" name="boltzMacaroonPath" [(ngModel)]="macaroonPath" tabindex="3" [required]="enableBoltz" [disabled]="!enableBoltz">
|
|
<mat-hint>Path for the folder containing boltz 'admin.macaroon', eg. D:\\xyz\\AppData\\Boltz\\testnet</mat-hint>
|
|
<mat-error *ngIf="!macaroonPath && enableBoltz">Boltz macaroon path is required.</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
</form>
|
|
<div fxLayout="row" class="mt-2">
|
|
<button class="mr-1" mat-stroked-button color="primary" type="reset" (click)="onReset()" tabindex="4">Reset</button>
|
|
<button mat-flat-button color="primary" type="submit" (click)="onUpdateService()" tabindex="5">Update</button>
|
|
</div>
|
|
</div>
|