@ -30,14 +30,8 @@
< ng-container matColumnDef = "status" >
< th mat-header-cell * matHeaderCellDef mat-sort-header > < / th >
< td mat-cell * matCellDef = "let payment" >
< span * ngIf = "payment.status === 'complete'" class = "dot green" matTooltip = "Completed" matTooltipPosition = "right" [ ngClass ] = " { ' mr-0 ' : screenSize = == screenSizeEnum . XS } " > < / span >
< span * ngIf = "payment.status !== 'complete'" class = "dot yellow" matTooltip = "Failed" matTooltipPosition = "right" [ ngClass ] = " { ' mr-0 ' : screenSize = == screenSizeEnum . XS } " > < / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "id" >
< th mat-header-cell * matHeaderCellDef mat-sort-header > ID< / th >
< td mat-cell * matCellDef = "let payment" >
{{payment?.id}}
< span * ngIf = "payment.status === 'complete'" class = "dot green" matTooltip = "Completed" matTooltipPosition = "right" > < / span >
< span * ngIf = "payment.status !== 'complete'" class = "dot yellow" matTooltip = "Failed" matTooltipPosition = "right" > < / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "created_at" >
@ -120,29 +114,39 @@
< / ng-container >
<!-- Payment Group Row Start -->
< ng-container matColumnDef = "groupTotal" >
< ng-container matColumnDef = "group_status" >
< td mat-cell * matCellDef = "let payment" >
< span fxLayoutAlign = "start center" class = "mpp-row-span" >
< span * ngIf = "payment.status === 'complete'" class = "dot green" matTooltip = "Completed" matTooltipPosition = "right" > < / span >
< span * ngIf = "payment.status !== 'complete'" class = "dot yellow" matTooltip = "Incomplete/Failed" matTooltipPosition = "right" > < / span >
< / span >
< ng-container * ngIf = "payment.is_expanded" >
< span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "start center" class = "mpp-row-span pl-3" >
< span * ngIf = "mpp.status === 'complete'" class = "dot green" matTooltip = "Completed" matTooltipPosition = "right" > < / span >
< span * ngIf = "mpp.status !== 'complete'" class = "dot yellow" matTooltip = "Incomplete/Failed" matTooltipPosition = "right" > < / span >
< / span >
< / ng-container >
< / td >
< / ng-container >
< ng-container matColumnDef = "group_created_at" >
< td mat-cell * matCellDef = "let payment" >
< span fxLayoutAlign = "start center" class = "mpp-row-span" >
< span * ngIf = "payment.status === 'complete'" class = "dot green mt-0" matTooltip = "Completed" matTooltipPosition = "right" [ ngClass ] = " { ' mr-0 ' : screenSize = == screenSizeEnum . XS } " > < / span >
< span * ngIf = "payment.status !== 'complete'" class = "dot yellow mt-0" matTooltip = "Incomplete/Failed" matTooltipPosition = "right" [ ngClass ] = " { ' mr-0 ' : screenSize = == screenSizeEnum . XS } " > < / span >
Total Attempts: {{payment?.total_parts}}
< / span >
< ng-container * ngIf = "payment.is_expanded" >
< span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "start center" class = "mpp-row-span pl-3" >
< span * ngIf = "mpp.status === 'complete'" class = "dot green mt-0" matTooltip = "Completed" matTooltipPosition = "right" [ ngClass ] = " { ' mr-0 ' : screenSize = == screenSizeEnum . XS } " > < / span >
< span * ngIf = "mpp.status !== 'complete'" class = "dot yellow mt-0" matTooltip = "Incomplete/Failed" matTooltipPosition = "right" [ ngClass ] = " { ' mr-0 ' : screenSize = == screenSizeEnum . XS } " > < / span >
{{(mpp.created_at * 1000) | date:'dd/MMM/y HH:mm'}}
< / span >
< / ng-container >
< / td >
< / ng-container >
< ng-container matColumnDef = "group T ype">
< ng-container matColumnDef = "group _t ype">
< td mat-cell * matCellDef = "let payment" >
< span fxLayoutAlign = "start center" class = "mpp-row-span" > {{ payment?.bolt12 ? 'Bolt12' : payment?.bolt11 ? 'Bolt11' : 'Keysend' }}< / span >
< span * ngIf = "payment.is_expanded" > < span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "start center" class = "mpp-row-span" > {{ payment?.bolt12 ? 'Bolt12' : payment?.bolt11 ? 'Bolt11' : 'Keysend' }}< / span > < / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "group H ash">
< ng-container matColumnDef = "group _payment_h ash">
< td mat-cell * matCellDef = "let payment" >
< span fxLayout = "row" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{payment?.payment_hash}}< / span >
@ -154,8 +158,56 @@
< / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "groupAmtSent" >
< ng-container matColumnDef = "group_bolt11" >
< td mat-cell * matCellDef = "let payment" >
< span fxLayout = "row" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{payment?.bolt11}}< / span >
< / span >
< span * ngIf = "payment.is_expanded" >
< span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "start center" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{mpp?.bolt11}}< / span >
< / span >
< / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "group_label" >
< td mat-cell * matCellDef = "let payment" >
< span fxLayout = "row" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{payment?.label}}< / span >
< / span >
< span * ngIf = "payment.is_expanded" >
< span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "start center" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{mpp?.label}}< / span >
< / span >
< / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "group_destination" >
< td mat-cell * matCellDef = "let payment" >
< span fxLayout = "row" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{payment?.destination}}< / span >
< / span >
< span * ngIf = "payment.is_expanded" >
< span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "start center" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{mpp?.destination}}< / span >
< / span >
< / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "group_memo" >
< td mat-cell * matCellDef = "let payment" >
< span fxLayout = "row" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{payment?.memo}}< / span >
< / span >
< span * ngIf = "payment.is_expanded" >
< span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "start center" class = "ellipsis-parent mpp-row-span" [ ngStyle ] = " { ' max-width ' : ( screenSize = == screenSizeEnum . XS ) ? ' 10rem ' : ' 30rem ' } " >
< span class = "ellipsis-child" > {{mpp?.memo}}< / span >
< / span >
< / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "group_msatoshi_sent" >
< td mat-cell * matCellDef = "let payment" class = "px-1" >
< span fxLayoutAlign = "end center" class = "mpp-row-span" > {{payment?.msatoshi_sent/1000 | number:payment?.msatoshi_sent < 1000 ? ' 1 . 0-4 ' : ' 1 . 0-0 ' } } < / span >
< span * ngIf = "payment.is_expanded" >
< span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "end center" class = "mpp-row-span" >
@ -164,8 +216,8 @@
< / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "group AmtRecv ">
< td mat-cell * matCellDef = "let payment" >
< ng-container matColumnDef = "group _msatoshi ">
< td mat-cell * matCellDef = "let payment" class = "px-1" >
< span fxLayoutAlign = "end center" class = "mpp-row-span" > {{payment?.msatoshi/1000 | number:payment?.msatoshi < 1000 ? ' 1 . 0-4 ' : ' 1 . 0-0 ' } } < / span >
< span * ngIf = "payment.is_expanded" >
< span * ngFor = "let mpp of payment?.mpps" fxLayoutAlign = "end center" class = "mpp-row-span" >
@ -174,8 +226,8 @@
< / span >
< / td >
< / ng-container >
< ng-container matColumnDef = "group Action ">
< td mat-cell * matCellDef = "let payment" class = "p x -3">
< ng-container matColumnDef = "group _actions ">
< td mat-cell * matCellDef = "let payment" class = "p r -3">
< span fxLayoutAlign = "end center" >
< button mat-flat-button class = "btn-mpp-expand" color = "primary" type = "button" tabindex = "5" ( click ) = " payment . is_expanded = !payment.is_expanded" > {{payment.is_expanded ? 'Hide' : 'Show'}}< / button >
< / span >
@ -189,7 +241,7 @@
< tr mat-row * matRowDef = "let row; columns: mppColumns; when: is_group;" > < / tr >
<!-- Payment Group Row End -->
< tr mat-footer-row * matFooterRowDef = "['no_payment']" [ ngClass ] = " { ' display-none ' : payments ? . data & & payments ? . data ? . length & & payments ? . data ? . length > 0}">< / tr >
< tr mat-header-row * matHeaderRowDef = "displayedColumns ; sticky: flgSticky; "> < / tr >
< tr mat-header-row * matHeaderRowDef = "displayedColumns "> < / tr >
< tr mat-row * matRowDef = "let row; columns: displayedColumns; when: !is_group;" > < / tr >
< / table >
< / div >