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.
29 lines
2.2 KiB
HTML
29 lines
2.2 KiB
HTML
<div fxLayout="column" fxFlex="100" [perfectScrollbar]>
|
|
<div class="alert alert-info mt-1">
|
|
<fa-icon class="mr-1 alert-icon" [icon]="faInfoCircle"></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 #form="ngForm" fxLayout="column" fxFlex="100" fxLayoutAlign="start stretch" class="settings-container page-sub-title-container mt-1">
|
|
<div fxLayout="column" fxFlex="50" fxLayoutAlign="start stretch">
|
|
<mat-slide-toggle autoFocus class="ml-2" tabindex="1" color="primary" name="boltz" [(ngModel)]="enableBoltz" (change)="onEnableServiceChanged($event)">Enable Boltz Service</mat-slide-toggle>
|
|
<mat-form-field class="mb-2">
|
|
<mat-label>Boltz Server URL</mat-label>
|
|
<input #srvrUrl="ngModel" matInput type="text" id="boltzServerUrl" name="srvrUrl" tabindex="2" [required]="enableBoltz" [disabled]="!enableBoltz" [(ngModel)]="serverUrl">
|
|
<mat-hint>Service url for boltz server REST APIs, eg. https://127.0.0.1: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>
|
|
<mat-label>Boltz Macaroon Path</mat-label>
|
|
<input matInput type="text" id="boltzMacaroonPath" name="boltzMacaroonPath" tabindex="3" [required]="enableBoltz" [disabled]="!enableBoltz" [(ngModel)]="macaroonPath">
|
|
<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" tabindex="4" (click)="onReset()">Reset</button>
|
|
<button mat-flat-button color="primary" type="submit" tabindex="5" (click)="onUpdateService()">Update</button>
|
|
</div>
|
|
</div>
|