From 5329e45e2cfb6dad87321239ab7c2fc127c392b7 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 12 Jun 2022 17:30:26 +0200 Subject: [PATCH] Feature/add data dialog to queue jobs view (#1005) * Add data dialog * Update changelog --- CHANGELOG.md | 9 ++++++++- .../app/components/admin-jobs/admin-jobs.component.ts | 4 ++++ .../client/src/app/components/admin-jobs/admin-jobs.html | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05df54180..d0e0e6013 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,16 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Extended the queue jobs view in the admin control panel by a data dialog + ### Changed - Changed the label from _Balance_ to _Cash Balance_ in the account dialog ## 1.157.0 - 11.06.2022 +### Added + +- Extended the queue jobs view in the admin control panel by the number of attempts and the status + ### Changed - Migrated the historical market data gathering to the queue design pattern -- Extended the queue jobs view in the admin control panel by the number of attempts and the status - Refreshed the cryptocurrencies list to support more coins by default - Increased the historical data chart of the _Fear & Greed Index_ (market mood) to 180 days - Upgraded `chart.js` from version `3.7.0` to `3.8.0` diff --git a/apps/client/src/app/components/admin-jobs/admin-jobs.component.ts b/apps/client/src/app/components/admin-jobs/admin-jobs.component.ts index aba2fd29b..c5da45f13 100644 --- a/apps/client/src/app/components/admin-jobs/admin-jobs.component.ts +++ b/apps/client/src/app/components/admin-jobs/admin-jobs.component.ts @@ -90,6 +90,10 @@ export class AdminJobsComponent implements OnDestroy, OnInit { }); } + public onViewData(aData: AdminJobs['jobs'][0]['data']) { + alert(JSON.stringify(aData, null, ' ')); + } + public onViewStacktrace(aStacktrace: AdminJobs['jobs'][0]['stacktrace']) { alert(JSON.stringify(aStacktrace, null, ' ')); } diff --git a/apps/client/src/app/components/admin-jobs/admin-jobs.html b/apps/client/src/app/components/admin-jobs/admin-jobs.html index 6c48b9576..aca26b946 100644 --- a/apps/client/src/app/components/admin-jobs/admin-jobs.html +++ b/apps/client/src/app/components/admin-jobs/admin-jobs.html @@ -105,6 +105,9 @@ +