2021-06-01 21:33:56 +02:00
|
|
|
<table class="gf-table w-100" mat-table [dataSource]="dataSource">
|
2021-05-01 12:30:52 +02:00
|
|
|
<ng-container matColumnDef="account">
|
2021-06-01 21:33:56 +02:00
|
|
|
<th *matHeaderCellDef class="px-1" i18n mat-header-cell>Name</th>
|
2021-05-12 20:32:34 +02:00
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
|
|
|
{{ element.name }}
|
2021-05-01 12:30:52 +02:00
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container matColumnDef="platform">
|
2021-06-01 21:33:56 +02:00
|
|
|
<th *matHeaderCellDef class="px-1" i18n mat-header-cell>Platform</th>
|
2021-05-12 20:32:34 +02:00
|
|
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
2021-05-01 12:30:52 +02:00
|
|
|
<div class="d-flex">
|
|
|
|
<gf-symbol-icon
|
|
|
|
*ngIf="element.Platform?.url"
|
|
|
|
class="mr-1"
|
|
|
|
[tooltip]=""
|
|
|
|
[url]="element.Platform?.url"
|
|
|
|
></gf-symbol-icon>
|
|
|
|
<span>{{ element.Platform?.name }}</span>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container matColumnDef="actions">
|
2021-05-12 20:32:34 +02:00
|
|
|
<th *matHeaderCellDef class="px-1 text-center" i18n mat-header-cell></th>
|
|
|
|
<td *matCellDef="let element" class="px-1 text-center" mat-cell>
|
2021-05-01 12:30:52 +02:00
|
|
|
<button
|
|
|
|
class="mx-1 no-min-width px-2"
|
|
|
|
mat-button
|
|
|
|
[matMenuTriggerFor]="accountMenu"
|
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
>
|
|
|
|
<ion-icon name="ellipsis-vertical"></ion-icon>
|
|
|
|
</button>
|
|
|
|
<mat-menu #accountMenu="matMenu" xPosition="before">
|
|
|
|
<button i18n mat-menu-item (click)="onUpdateAccount(element)">
|
|
|
|
Edit
|
|
|
|
</button>
|
2021-05-02 21:18:52 +02:00
|
|
|
<button
|
|
|
|
i18n
|
|
|
|
mat-menu-item
|
|
|
|
[disabled]="element.isDefault || element.Order?.length > 0"
|
|
|
|
(click)="onDeleteAccount(element.id)"
|
|
|
|
>
|
2021-05-01 12:30:52 +02:00
|
|
|
Delete
|
|
|
|
</button>
|
|
|
|
</mat-menu>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
|
2021-05-02 21:18:52 +02:00
|
|
|
<ng-container matColumnDef="transactions">
|
2021-06-01 21:33:56 +02:00
|
|
|
<th *matHeaderCellDef i18n mat-header-cell>Transactions</th>
|
2021-05-02 21:18:52 +02:00
|
|
|
<td *matCellDef="let element" mat-cell>
|
|
|
|
{{ element.Order?.length }}
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
|
2021-05-01 12:30:52 +02:00
|
|
|
<tr *matHeaderRowDef="displayedColumns" mat-header-row></tr>
|
|
|
|
<tr *matRowDef="let row; columns: displayedColumns" mat-row></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<ngx-skeleton-loader
|
|
|
|
*ngIf="isLoading"
|
|
|
|
animation="pulse"
|
|
|
|
class="px-4 py-3"
|
|
|
|
[theme]="{
|
|
|
|
height: '1.5rem',
|
|
|
|
width: '100%'
|
|
|
|
}"
|
|
|
|
></ngx-skeleton-loader>
|