Browse Source
Add version to Overview of Admin Control panel (#2414)
* Add version to Overview of Admin Control panel
* Update changelog
pull/2412/head^2
Anirudh Sudhir
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
7 additions and
0 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/admin-overview/admin-overview.component.ts
-
apps/client/src/app/components/admin-overview/admin-overview.html
|
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
|
- Added the version to the admin control panel |
|
|
|
- Added pagination parameters (`skip`, `take`) to the endpoint `GET api/v1/order` |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core'; |
|
|
|
import { MatCheckboxChange } from '@angular/material/checkbox'; |
|
|
|
import { environment } from '@ghostfolio/client/../environments/environment'; |
|
|
|
import { AdminService } from '@ghostfolio/client/services/admin.service'; |
|
|
|
import { CacheService } from '@ghostfolio/client/services/cache.service'; |
|
|
|
import { DataService } from '@ghostfolio/client/services/data.service'; |
|
|
@ -42,6 +43,7 @@ export class AdminOverviewComponent implements OnDestroy, OnInit { |
|
|
|
public transactionCount: number; |
|
|
|
public userCount: number; |
|
|
|
public user: User; |
|
|
|
public version = environment.version; |
|
|
|
|
|
|
|
private unsubscribeSubject = new Subject<void>(); |
|
|
|
|
|
|
|
|
|
@ -3,6 +3,10 @@ |
|
|
|
<div class="col"> |
|
|
|
<mat-card appearance="outlined" class="mb-3"> |
|
|
|
<mat-card-content> |
|
|
|
<div class="d-flex my-3"> |
|
|
|
<div class="w-50" i18n>Version</div> |
|
|
|
<div class="w-50">{{ version }}</div> |
|
|
|
</div> |
|
|
|
<div class="d-flex my-3"> |
|
|
|
<div class="w-50" i18n>User Count</div> |
|
|
|
<div class="w-50"> |
|
|
|