Feature/improve usage of value component (#1308)
* Improve usage of value component * Update changelog
This commit is contained in:
parent
cf234003ec
commit
a6186c23e2
10
CHANGELOG.md
10
CHANGELOG.md
@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Improved the usage of the value component in the admin control panel
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed the usage of the value component on the allocations page
|
||||||
|
|
||||||
## 1.200.0 - 01.10.2022
|
## 1.200.0 - 01.10.2022
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -5,15 +5,26 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div class="d-flex my-3">
|
<div class="d-flex my-3">
|
||||||
<div class="w-50" i18n>User Count</div>
|
<div class="w-50" i18n>User Count</div>
|
||||||
<div class="w-50">{{ userCount }}</div>
|
<div class="w-50">
|
||||||
|
<gf-value
|
||||||
|
precision="0"
|
||||||
|
[locale]="user?.settings?.locale"
|
||||||
|
[value]="userCount"
|
||||||
|
></gf-value>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex my-3">
|
<div class="d-flex my-3">
|
||||||
<div class="w-50" i18n>Activity Count</div>
|
<div class="w-50" i18n>Activity Count</div>
|
||||||
<div class="w-50">
|
<div class="w-50">
|
||||||
<ng-container *ngIf="transactionCount">
|
<gf-value
|
||||||
{{ transactionCount }} ({{ transactionCount / userCount | number
|
precision="0"
|
||||||
: '1.2-2' }} <span i18n>per User</span>)
|
[locale]="user?.settings?.locale"
|
||||||
</ng-container>
|
[value]="transactionCount"
|
||||||
|
></gf-value>
|
||||||
|
<div *ngIf="transactionCount && userCount">
|
||||||
|
{{ transactionCount / userCount | number : '1.2-2' }}
|
||||||
|
<span i18n>per User</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex my-3">
|
<div class="d-flex my-3">
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<mat-card class="mb-3">
|
<mat-card class="mb-3">
|
||||||
<mat-card-header class="overflow-hidden w-100">
|
<mat-card-header class="mb-2 overflow-hidden w-100">
|
||||||
<mat-card-title class="text-truncate" i18n
|
<mat-card-title class="m-0 text-truncate" i18n
|
||||||
>Proportion of Net Worth</mat-card-title
|
>Proportion of Net Worth</mat-card-title
|
||||||
>
|
>
|
||||||
<gf-value
|
<gf-value
|
||||||
class="align-items-end flex-grow-1 ml-2"
|
class="flex-grow-1 justify-content-end l-2"
|
||||||
size="medium"
|
size="medium"
|
||||||
[isPercent]="true"
|
[isPercent]="true"
|
||||||
[value]="isLoading ? undefined : portfolioDetails?.filteredValueInPercentage"
|
[value]="isLoading ? undefined : portfolioDetails?.filteredValueInPercentage"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user