From f567e25f2778e2cd09abe0e424699014164408c5 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 11 Nov 2023 18:48:23 +0100 Subject: [PATCH] Feature/introduce action menus in overview of action control panel (#2637) * Introduce action menus * Exchange rates management * Coupons management * Update changelog --- CHANGELOG.md | 1 + .../admin-overview/admin-overview.html | 88 ++++++++++++++----- .../admin-overview/admin-overview.module.ts | 2 + 3 files changed, 68 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49825ad3c..fbeff96ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Optimized the style of the carousel component on mobile for the testimonial section on the landing page +- Introduced action menus in the overview of the admin control panel - Harmonized the name column in the historical market data table of the admin control panel ## 2.21.0 - 2023-11-09 diff --git a/apps/client/src/app/components/admin-overview/admin-overview.html b/apps/client/src/app/components/admin-overview/admin-overview.html index da14baea0..c0ce87c88 100644 --- a/apps/client/src/app/components/admin-overview/admin-overview.html +++ b/apps/client/src/app/components/admin-overview/admin-overview.html @@ -38,7 +38,7 @@
- -
+ {{ exchangeRate.label1 }} = + {{ exchangeRate.label2 }} - + + + + - - - + [routerLink]="['/admin', 'market-data']" + > + + + Edit + + + +
@@ -149,17 +174,34 @@ - +
{{ coupon.code }} - {{ coupon.duration }} - {{ coupon.duration }} + + +
diff --git a/apps/client/src/app/components/admin-overview/admin-overview.module.ts b/apps/client/src/app/components/admin-overview/admin-overview.module.ts index 554118bb3..d0762e79f 100644 --- a/apps/client/src/app/components/admin-overview/admin-overview.module.ts +++ b/apps/client/src/app/components/admin-overview/admin-overview.module.ts @@ -3,6 +3,7 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; +import { MatMenuModule } from '@angular/material/menu'; import { MatSelectModule } from '@angular/material/select'; import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { RouterModule } from '@angular/router'; @@ -20,6 +21,7 @@ import { AdminOverviewComponent } from './admin-overview.component'; GfValueModule, MatButtonModule, MatCardModule, + MatMenuModule, MatSelectModule, MatSlideToggleModule, ReactiveFormsModule,