Browse Source

Feature/migrate assistant and value component to control flow (part 2) (#4948)

* Migrate to control flow

* Update changelog
pull/4947/head
Thomas Kaul 2 weeks ago
committed by GitHub
parent
commit
a7319844fd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 4
      libs/ui/src/lib/assistant/assistant.html
  3. 10
      libs/ui/src/lib/value/value.component.html

2
CHANGELOG.md

@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changelog ### Changelog
- Migrated the `@ghostfolio/ui/assistant` component to control flow
- Migrated the `@ghostfolio/ui/value` component to control flow
- Improved the language localization for Chinese (`zh`) - Improved the language localization for Chinese (`zh`)
- Improved the language localization for Portuguese (`pt`) - Improved the language localization for Portuguese (`pt`)

4
libs/ui/src/lib/assistant/assistant.html

@ -92,7 +92,8 @@
} }
} }
</div> </div>
<div *ngIf="hasPermissionToAccessAdminControl" class="mt-2"> @if (hasPermissionToAccessAdminControl) {
<div class="mt-2">
<div class="font-weight-bold px-3 text-muted title" i18n> <div class="font-weight-bold px-3 text-muted title" i18n>
Asset Profiles Asset Profiles
</div> </div>
@ -120,6 +121,7 @@
} }
} }
</div> </div>
}
</div> </div>
</div> </div>
<form [formGroup]="filterForm"> <form [formGroup]="filterForm">

10
libs/ui/src/lib/value/value.component.html

@ -11,14 +11,14 @@
[ngClass]="position === 'end' ? 'justify-content-end' : ''" [ngClass]="position === 'end' ? 'justify-content-end' : ''"
> >
<ng-container *ngIf="isNumber || value === null"> <ng-container *ngIf="isNumber || value === null">
<ng-container *ngIf="colorizeSign && !useAbsoluteValue"> @if (colorizeSign && !useAbsoluteValue) {
@if (+value > 0) { @if (+value > 0) {
<div class="mr-1 text-success">+</div> <div class="mr-1 text-success">+</div>
} }
@if (+value < 0) { @if (+value < 0) {
<div class="mr-1 text-danger">-</div> <div class="mr-1 text-danger">-</div>
} }
</ng-container> }
@if (isPercent) { @if (isPercent) {
<div <div
class="mb-0 value" class="mb-0 value"
@ -85,8 +85,8 @@
/> />
} }
<ng-container> @if (size === 'large') {
<div *ngIf="size === 'large'" class="text-truncate"> <div class="text-truncate">
<span class="h6" <span class="h6"
><ng-container *ngTemplateOutlet="label"></ng-container ><ng-container *ngTemplateOutlet="label"></ng-container
></span> ></span>
@ -97,5 +97,5 @@
<small *ngIf="size !== 'large'" class="d-block text-truncate"> <small *ngIf="size !== 'large'" class="d-block text-truncate">
<ng-container *ngTemplateOutlet="label"></ng-container> <ng-container *ngTemplateOutlet="label"></ng-container>
</small> </small>
</ng-container> }
</div> </div>

Loading…
Cancel
Save