|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
<span *ngIf="!invoice?.payment_request || invoice?.payment_request === ''" class="font-size-120">QR Code Not Applicable</span>
|
|
|
|
|
</div>
|
|
|
|
|
<mat-divider *ngIf="screenSize === screenSizeEnum.XS || screenSize === screenSizeEnum.SM" [inset]="true" class="my-1"></mat-divider>
|
|
|
|
|
<div [perfectScrollbar] [ngClass]="{'h-50': invoice?.htlcs && invoice?.htlcs.length > 0 && showAdvanced}" #scrollContainer>
|
|
|
|
|
<div [ngClass]="{'h-50': invoice?.htlcs && invoice?.htlcs.length > 0 && showAdvanced}" #scrollContainer>
|
|
|
|
|
<div fxLayout="row">
|
|
|
|
|
<div fxFlex="50">
|
|
|
|
|
<h4 fxLayoutAlign="start" class="font-bold-500">{{screenSize === screenSizeEnum.XS ? 'Amount' : 'Amount Requested'}}</h4>
|
|
|
|
@ -76,6 +76,27 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="showAdvanced">
|
|
|
|
|
<ng-container *ngTemplateOutlet="advancedBlock"></ng-container>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-card-content>
|
|
|
|
|
<div *ngIf="invoice?.htlcs && invoice?.htlcs.length > 0 && showAdvanced && flgOpened" fxLayout="row" fxLayoutAlign="start end" class="btn-sticky-container padding-gap-x-large">
|
|
|
|
|
<button mat-mini-fab aria-label="Scroll Down" fxLayoutAlign="center center" (click)="onScrollDown()">
|
|
|
|
|
<mat-icon fxLayoutAlign="center center">arrow_downward</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="padding-gap-x-large padding-gap-bottom-large" fxLayout="row" fxLayoutAlign="end center" fxFlex="100">
|
|
|
|
|
<button mat-button color="primary" type="reset" (click)="onShowAdvanced()" tabindex="1" class="mr-1">
|
|
|
|
|
<p *ngIf="!showAdvanced; else hideAdvancedText">Show Advanced</p>
|
|
|
|
|
<ng-template #hideAdvancedText><p>Hide Advanced</p></ng-template>
|
|
|
|
|
</button>
|
|
|
|
|
<button *ngIf="invoice?.payment_request && invoice?.payment_request !== ''" autoFocus mat-button color="primary" tabindex="2" type="submit" rtlClipboard [payload]="invoice?.payment_request" (copied)="onCopyPayment($event)">{{screenSize === screenSizeEnum.XS ? 'Copy Payment' : 'Copy Payment Request'}}</button>
|
|
|
|
|
<button *ngIf="!invoice?.payment_request || invoice?.payment_request === ''" autoFocus mat-button color="primary" tabindex="2" type="button" (click)="onClose()">OK</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<ng-template #advancedBlock>
|
|
|
|
|
<mat-divider [inset]="true" class="my-1"></mat-divider>
|
|
|
|
|
<div fxLayout="row">
|
|
|
|
|
<div fxFlex="100">
|
|
|
|
@ -128,22 +149,4 @@
|
|
|
|
|
</mat-expansion-panel>
|
|
|
|
|
</div>
|
|
|
|
|
<mat-divider [inset]="true" class="my-1" *ngIf="invoice?.htlcs && invoice?.htlcs.length > 0"></mat-divider>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-card-content>
|
|
|
|
|
<div *ngIf="invoice?.htlcs && invoice?.htlcs.length > 0 && showAdvanced && flgOpened" fxLayout="row" fxLayoutAlign="start end" class="btn-sticky-container padding-gap-x-large">
|
|
|
|
|
<button mat-mini-fab aria-label="Scroll Down" fxLayoutAlign="center center" (click)="onScrollDown()">
|
|
|
|
|
<mat-icon fxLayoutAlign="center center">arrow_downward</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="padding-gap-x-large padding-gap-bottom-large" fxLayout="row" fxLayoutAlign="end center" fxFlex="100">
|
|
|
|
|
<button mat-button color="primary" type="reset" (click)="onShowAdvanced()" tabindex="1" class="mr-1">
|
|
|
|
|
<p *ngIf="!showAdvanced; else hideAdvancedText">Show Advanced</p>
|
|
|
|
|
<ng-template #hideAdvancedText><p>Hide Advanced</p></ng-template>
|
|
|
|
|
</button>
|
|
|
|
|
<button *ngIf="invoice?.payment_request && invoice?.payment_request !== ''" autoFocus mat-button color="primary" tabindex="2" type="submit" rtlClipboard [payload]="invoice?.payment_request" (copied)="onCopyPayment($event)">{{screenSize === screenSizeEnum.XS ? 'Copy Payment' : 'Copy Payment Request'}}</button>
|
|
|
|
|
<button *ngIf="!invoice?.payment_request || invoice?.payment_request === ''" autoFocus mat-button color="primary" tabindex="2" type="button" (click)="onClose()">OK</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-template>
|