Feature/add status column to market data table in admin control panel (#4520)
* Add status column to market data table in admin control panel * Update changelog
This commit is contained in:
parent
2c07b7f058
commit
0f557f431e
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Added the data gathering status column to the historical market data table of the admin control
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Improved the language localization for Enlish (`en`)
|
- Improved the language localization for Enlish (`en`)
|
||||||
|
@ -249,6 +249,7 @@ export class AdminService {
|
|||||||
currency: true,
|
currency: true,
|
||||||
dataSource: true,
|
dataSource: true,
|
||||||
id: true,
|
id: true,
|
||||||
|
isActive: true,
|
||||||
isUsedByUsersWithSubscription: true,
|
isUsedByUsersWithSubscription: true,
|
||||||
name: true,
|
name: true,
|
||||||
Order: {
|
Order: {
|
||||||
@ -309,6 +310,7 @@ export class AdminService {
|
|||||||
currency,
|
currency,
|
||||||
dataSource,
|
dataSource,
|
||||||
id,
|
id,
|
||||||
|
isActive,
|
||||||
isUsedByUsersWithSubscription,
|
isUsedByUsersWithSubscription,
|
||||||
name,
|
name,
|
||||||
Order,
|
Order,
|
||||||
@ -367,6 +369,7 @@ export class AdminService {
|
|||||||
countriesCount,
|
countriesCount,
|
||||||
dataSource,
|
dataSource,
|
||||||
id,
|
id,
|
||||||
|
isActive,
|
||||||
lastMarketPrice,
|
lastMarketPrice,
|
||||||
name,
|
name,
|
||||||
symbol,
|
symbol,
|
||||||
@ -748,6 +751,7 @@ export class AdminService {
|
|||||||
countriesCount: 0,
|
countriesCount: 0,
|
||||||
date: dateOfFirstActivity,
|
date: dateOfFirstActivity,
|
||||||
id: undefined,
|
id: undefined,
|
||||||
|
isActive: true,
|
||||||
name: symbol,
|
name: symbol,
|
||||||
sectorsCount: 0
|
sectorsCount: 0
|
||||||
};
|
};
|
||||||
|
@ -137,6 +137,7 @@ export class AdminMarketDataComponent
|
|||||||
);
|
);
|
||||||
|
|
||||||
this.displayedColumns = [
|
this.displayedColumns = [
|
||||||
|
'status',
|
||||||
'select',
|
'select',
|
||||||
'nameWithSymbol',
|
'nameWithSymbol',
|
||||||
'dataSource',
|
'dataSource',
|
||||||
|
@ -20,6 +20,34 @@
|
|||||||
matSortDirection="asc"
|
matSortDirection="asc"
|
||||||
[dataSource]="dataSource"
|
[dataSource]="dataSource"
|
||||||
>
|
>
|
||||||
|
<ng-container matColumnDef="status">
|
||||||
|
<th
|
||||||
|
*matHeaderCellDef
|
||||||
|
class="d-none d-lg-table-cell px-1"
|
||||||
|
mat-header-cell
|
||||||
|
></th>
|
||||||
|
<td
|
||||||
|
*matCellDef="let element"
|
||||||
|
class="d-none d-lg-table-cell px-1"
|
||||||
|
mat-cell
|
||||||
|
>
|
||||||
|
@if (!element.isActive) {
|
||||||
|
<div
|
||||||
|
class="d-flex justify-content-center"
|
||||||
|
i18n-title
|
||||||
|
title="Data Gathering is off"
|
||||||
|
>
|
||||||
|
<ion-icon name="ban-outline" />
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
<td
|
||||||
|
*matFooterCellDef
|
||||||
|
class="d-none d-lg-table-cell px-1"
|
||||||
|
mat-footer-cell
|
||||||
|
></td>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
<ng-container matColumnDef="select">
|
<ng-container matColumnDef="select">
|
||||||
<th *matHeaderCellDef class="px-1" mat-header-cell></th>
|
<th *matHeaderCellDef class="px-1" mat-header-cell></th>
|
||||||
<td *matCellDef="let element" class="px-1" mat-cell>
|
<td *matCellDef="let element" class="px-1" mat-cell>
|
||||||
|
@ -14,6 +14,7 @@ export interface AdminMarketDataItem {
|
|||||||
dataSource: DataSource;
|
dataSource: DataSource;
|
||||||
date: Date;
|
date: Date;
|
||||||
id: string;
|
id: string;
|
||||||
|
isActive: boolean;
|
||||||
isBenchmark?: boolean;
|
isBenchmark?: boolean;
|
||||||
isUsedByUsersWithSubscription?: boolean;
|
isUsedByUsersWithSubscription?: boolean;
|
||||||
lastMarketPrice: number;
|
lastMarketPrice: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user