Browse Source

Task/improve language localization in historical market data table of admin control panel (#7351)

* Improve language localization

* Update changelog
pull/6947/merge
Thomas Kaul 3 days ago
committed by GitHub
parent
commit
1ba6603fae
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 1
      apps/client/src/app/components/admin-market-data/admin-market-data.component.ts
  3. 32
      apps/client/src/app/components/admin-market-data/admin-market-data.html
  4. 2
      apps/client/src/styles.scss

1
CHANGELOG.md

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Migrated the clone, create and edit activity dialogs to dedicated routes
- Improved the language localization in the historical market data table of the admin control panel
- Improved the language localization in the tag management of the admin control panel
### Fixed

1
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

@ -158,6 +158,7 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit {
protected placeholder = '';
protected readonly selection = new SelectionModel<AssetProfileItem>(true);
protected totalItems = 0;
protected readonly translate = translate;
protected user: User;
private activeFilters: Filter[] = [];

32
apps/client/src/app/components/admin-market-data/admin-market-data.html

@ -87,7 +87,11 @@
>
<ng-container i18n>Name</ng-container>
</th>
<td *matCellDef="let element" class="line-height-1 px-1" mat-cell>
<td
*matCellDef="let element"
class="line-height-normal px-1"
mat-cell
>
<div class="text-truncate">{{ element.name }}</div>
@if (!isUUID(element.symbol)) {
<div>
@ -113,8 +117,17 @@
<th *matHeaderCellDef class="px-1" mat-header-cell mat-sort-header>
<ng-container i18n>Asset Class</ng-container>
</th>
<td *matCellDef="let element" class="px-1" mat-cell>
{{ element.assetClass }}
<td
*matCellDef="let element"
class="line-height-normal px-1 text-nowrap"
mat-cell
>
<div>{{ translate(element.assetClass) }}</div>
@if (element.assetClass) {
<div>
<small class="text-muted">{{ element.assetClass }}</small>
</div>
}
</td>
</ng-container>
@ -122,8 +135,17 @@
<th *matHeaderCellDef class="px-1" mat-header-cell mat-sort-header>
<ng-container i18n>Asset Sub Class</ng-container>
</th>
<td *matCellDef="let element" class="px-1" mat-cell>
{{ element.assetSubClass }}
<td
*matCellDef="let element"
class="line-height-normal px-1 text-nowrap"
mat-cell
>
<div>{{ translate(element.assetSubClass) }}</div>
@if (element.assetSubClass) {
<div>
<small class="text-muted">{{ element.assetSubClass }}</small>
</div>
}
</td>
</ng-container>

2
apps/client/src/styles.scss

@ -385,7 +385,7 @@ ngx-skeleton-loader {
}
.line-height-normal {
line-height: normal;
line-height: normal !important;
}
.mat-mdc-button-base {

Loading…
Cancel
Save