|
@ -38,7 +38,7 @@ |
|
|
<div class="w-50"> |
|
|
<div class="w-50"> |
|
|
<table> |
|
|
<table> |
|
|
<tr *ngFor="let exchangeRate of exchangeRates"> |
|
|
<tr *ngFor="let exchangeRate of exchangeRates"> |
|
|
<td class="d-flex"> |
|
|
<td> |
|
|
<gf-value |
|
|
<gf-value |
|
|
[locale]="user?.settings?.locale" |
|
|
[locale]="user?.settings?.locale" |
|
|
[value]="1" |
|
|
[value]="1" |
|
@ -46,8 +46,9 @@ |
|
|
</td> |
|
|
</td> |
|
|
<td class="pl-1">{{ exchangeRate.label1 }}</td> |
|
|
<td class="pl-1">{{ exchangeRate.label1 }}</td> |
|
|
<td class="px-1">=</td> |
|
|
<td class="px-1">=</td> |
|
|
<td class="d-flex justify-content-end"> |
|
|
<td align="right"> |
|
|
<gf-value |
|
|
<gf-value |
|
|
|
|
|
class="d-inline-block" |
|
|
[locale]="user?.settings?.locale" |
|
|
[locale]="user?.settings?.locale" |
|
|
[precision]="4" |
|
|
[precision]="4" |
|
|
[value]="exchangeRate.value" |
|
|
[value]="exchangeRate.value" |
|
@ -55,9 +56,21 @@ |
|
|
</td> |
|
|
</td> |
|
|
<td class="pl-1">{{ exchangeRate.label2 }}</td> |
|
|
<td class="pl-1">{{ exchangeRate.label2 }}</td> |
|
|
<td> |
|
|
<td> |
|
|
<a |
|
|
<button |
|
|
class="h-100 mx-1 no-min-width px-2" |
|
|
class="mx-1 no-min-width px-2" |
|
|
mat-button |
|
|
mat-button |
|
|
|
|
|
[matMenuTriggerFor]="exchangeRateActionsMenu" |
|
|
|
|
|
(click)="$event.stopPropagation()" |
|
|
|
|
|
> |
|
|
|
|
|
<ion-icon name="ellipsis-horizontal"></ion-icon> |
|
|
|
|
|
</button> |
|
|
|
|
|
<mat-menu |
|
|
|
|
|
#exchangeRateActionsMenu="matMenu" |
|
|
|
|
|
class="h-100 mx-1 no-min-width px-2" |
|
|
|
|
|
xPosition="before" |
|
|
|
|
|
> |
|
|
|
|
|
<a |
|
|
|
|
|
mat-menu-item |
|
|
[queryParams]="{ |
|
|
[queryParams]="{ |
|
|
assetProfileDialog: true, |
|
|
assetProfileDialog: true, |
|
|
dataSource: exchangeRate.dataSource, |
|
|
dataSource: exchangeRate.dataSource, |
|
@ -65,16 +78,28 @@ |
|
|
}" |
|
|
}" |
|
|
[routerLink]="['/admin', 'market-data']" |
|
|
[routerLink]="['/admin', 'market-data']" |
|
|
> |
|
|
> |
|
|
<ion-icon name="create-outline"></ion-icon> |
|
|
<span class="align-items-center d-flex"> |
|
|
|
|
|
<ion-icon |
|
|
|
|
|
class="mr-2" |
|
|
|
|
|
name="create-outline" |
|
|
|
|
|
></ion-icon> |
|
|
|
|
|
<span i18n>Edit</span> |
|
|
|
|
|
</span> |
|
|
</a> |
|
|
</a> |
|
|
<button |
|
|
<button |
|
|
*ngIf="customCurrencies.includes(exchangeRate.label2)" |
|
|
*ngIf="customCurrencies.includes(exchangeRate.label2)" |
|
|
class="h-100 mx-1 no-min-width px-2" |
|
|
mat-menu-item |
|
|
mat-button |
|
|
|
|
|
(click)="onDeleteCurrency(exchangeRate.label2)" |
|
|
(click)="onDeleteCurrency(exchangeRate.label2)" |
|
|
> |
|
|
> |
|
|
<ion-icon name="trash-outline"></ion-icon> |
|
|
<span class="align-items-center d-flex"> |
|
|
|
|
|
<ion-icon |
|
|
|
|
|
class="mr-2" |
|
|
|
|
|
name="trash-outline" |
|
|
|
|
|
></ion-icon> |
|
|
|
|
|
<span i18n>Delete</span> |
|
|
|
|
|
</span> |
|
|
</button> |
|
|
</button> |
|
|
|
|
|
</mat-menu> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
</table> |
|
|
</table> |
|
@ -149,17 +174,34 @@ |
|
|
<table> |
|
|
<table> |
|
|
<tr *ngFor="let coupon of coupons"> |
|
|
<tr *ngFor="let coupon of coupons"> |
|
|
<td class="text-monospace">{{ coupon.code }}</td> |
|
|
<td class="text-monospace">{{ coupon.code }}</td> |
|
|
<td class="d-flex justify-content-end pl-2"> |
|
|
<td class="pl-2 text-right">{{ coupon.duration }}</td> |
|
|
{{ coupon.duration }} |
|
|
|
|
|
</td> |
|
|
|
|
|
<td> |
|
|
<td> |
|
|
<button |
|
|
<button |
|
|
class="h-100 mx-1 no-min-width px-2" |
|
|
class="mx-1 no-min-width px-2" |
|
|
mat-button |
|
|
mat-button |
|
|
|
|
|
[matMenuTriggerFor]="couponActionsMenu" |
|
|
|
|
|
(click)="$event.stopPropagation()" |
|
|
|
|
|
> |
|
|
|
|
|
<ion-icon name="ellipsis-horizontal"></ion-icon> |
|
|
|
|
|
</button> |
|
|
|
|
|
<mat-menu |
|
|
|
|
|
#couponActionsMenu="matMenu" |
|
|
|
|
|
class="h-100 mx-1 no-min-width px-2" |
|
|
|
|
|
xPosition="before" |
|
|
|
|
|
> |
|
|
|
|
|
<button |
|
|
|
|
|
mat-menu-item |
|
|
(click)="onDeleteCoupon(coupon.code)" |
|
|
(click)="onDeleteCoupon(coupon.code)" |
|
|
> |
|
|
> |
|
|
<ion-icon name="trash-outline"></ion-icon> |
|
|
<span class="align-items-center d-flex"> |
|
|
|
|
|
<ion-icon |
|
|
|
|
|
class="mr-2" |
|
|
|
|
|
name="trash-outline" |
|
|
|
|
|
></ion-icon> |
|
|
|
|
|
<span i18n>Delete</span> |
|
|
|
|
|
</span> |
|
|
</button> |
|
|
</button> |
|
|
|
|
|
</mat-menu> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
</table> |
|
|
</table> |
|
|