|
|
|
@ -1,12 +1,35 @@
|
|
|
|
|
<ng-container *ngIf="hasPositions || !historicalDataItems">
|
|
|
|
|
<div class="container overview position-relative">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-tab-group
|
|
|
|
|
animationDuration="0ms"
|
|
|
|
|
class="position-absolute"
|
|
|
|
|
headerPosition="below"
|
|
|
|
|
mat-align-tabs="center"
|
|
|
|
|
>
|
|
|
|
|
<mat-tab>
|
|
|
|
|
<ng-template mat-tab-label>
|
|
|
|
|
<ion-icon name="analytics-outline" size="large"></ion-icon>
|
|
|
|
|
</ng-template>
|
|
|
|
|
<div
|
|
|
|
|
class="
|
|
|
|
|
align-items-center
|
|
|
|
|
container
|
|
|
|
|
d-flex
|
|
|
|
|
flex-column
|
|
|
|
|
h-100
|
|
|
|
|
justify-content-center
|
|
|
|
|
overview
|
|
|
|
|
p-3
|
|
|
|
|
position-relative
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<div class="row w-100">
|
|
|
|
|
<a
|
|
|
|
|
class="chart-container col mr-3"
|
|
|
|
|
*ngIf="historicalDataItems?.length !== 0"
|
|
|
|
|
class="chart-container col"
|
|
|
|
|
[routerLink]="[]"
|
|
|
|
|
[queryParams]="{performanceChartDialog: true}"
|
|
|
|
|
>
|
|
|
|
|
<gf-line-chart
|
|
|
|
|
class="mr-3"
|
|
|
|
|
symbol="Performance"
|
|
|
|
|
[historicalDataItems]="historicalDataItems"
|
|
|
|
|
[showLoader]="false"
|
|
|
|
@ -14,8 +37,22 @@
|
|
|
|
|
[showYAxis]="false"
|
|
|
|
|
></gf-line-chart>
|
|
|
|
|
</a>
|
|
|
|
|
<div
|
|
|
|
|
*ngIf="historicalDataItems?.length === 0"
|
|
|
|
|
class="
|
|
|
|
|
align-items-center
|
|
|
|
|
chart-container
|
|
|
|
|
d-flex
|
|
|
|
|
justify-content-center
|
|
|
|
|
w-100
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<div class="d-flex justify-content-center">
|
|
|
|
|
<gf-no-transactions-info-indicator></gf-no-transactions-info-indicator>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="overview-container row mb-5 mt-1">
|
|
|
|
|
<div class="overview-container row mt-1">
|
|
|
|
|
<div class="col">
|
|
|
|
|
<gf-portfolio-performance-summary
|
|
|
|
|
class="pb-4"
|
|
|
|
@ -35,25 +72,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="button-container d-flex justify-content-center position-absolute"
|
|
|
|
|
>
|
|
|
|
|
<a
|
|
|
|
|
*ngIf="showPositionsButton"
|
|
|
|
|
[routerLink]="['/home']"
|
|
|
|
|
fragment="positions-container"
|
|
|
|
|
i18n
|
|
|
|
|
mat-flat-button
|
|
|
|
|
(click)="showPositionsButton = false"
|
|
|
|
|
>Positions</a
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="positions-container" class="container positions">
|
|
|
|
|
<div class="row mb-3">
|
|
|
|
|
<div class="col">
|
|
|
|
|
<mat-card class="p-0">
|
|
|
|
|
</mat-tab>
|
|
|
|
|
<mat-tab>
|
|
|
|
|
<ng-template mat-tab-label>
|
|
|
|
|
<ion-icon name="wallet-outline" size="large"></ion-icon>
|
|
|
|
|
</ng-template>
|
|
|
|
|
<div class="container justify-content-center p-3 positions">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="align-items-center col">
|
|
|
|
|
<mat-card *ngIf="hasPositions === true" class="p-0">
|
|
|
|
|
<mat-card-content>
|
|
|
|
|
<gf-positions
|
|
|
|
|
[baseCurrency]="user?.settings?.baseCurrency"
|
|
|
|
@ -64,8 +92,21 @@
|
|
|
|
|
></gf-positions>
|
|
|
|
|
</mat-card-content>
|
|
|
|
|
</mat-card>
|
|
|
|
|
<div
|
|
|
|
|
*ngIf="hasPositions === false"
|
|
|
|
|
class="d-flex justify-content-center"
|
|
|
|
|
>
|
|
|
|
|
<gf-no-transactions-info-indicator></gf-no-transactions-info-indicator>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-tab>
|
|
|
|
|
<mat-tab>
|
|
|
|
|
<ng-template mat-tab-label>
|
|
|
|
|
<ion-icon name="reader-outline" size="large"></ion-icon>
|
|
|
|
|
</ng-template>
|
|
|
|
|
<div class="container p-3 positions">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-xs-12 col-md-6 mb-3">
|
|
|
|
|
<mat-card class="h-100">
|
|
|
|
@ -82,7 +123,7 @@
|
|
|
|
|
</mat-card-content>
|
|
|
|
|
</mat-card>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-12 col-md-6 mb-3">
|
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
|
|
|
<mat-card class="h-100">
|
|
|
|
|
<mat-card-header>
|
|
|
|
|
<mat-card-title i18n>Summary</mat-card-title>
|
|
|
|
@ -99,10 +140,5 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container *ngIf="!hasPositions && historicalDataItems">
|
|
|
|
|
<div class="d-flex justify-content-center my-5">
|
|
|
|
|
<gf-no-transactions-info-indicator></gf-no-transactions-info-indicator>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</mat-tab>
|
|
|
|
|
</mat-tab-group>
|
|
|
|
|