Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/improve usability of platform and tag management (#3144)

Thomas Kaul00c2ede85e99
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 77c5561520..bcf2ad4f59 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Extended the content of the _General_ section by the product roadmap on the Frequently Asked Questions (FAQ) page
+### Changed
+
+- Improved the usability of the platform management in the admin control panel
+- Improved the usability of the tag management in the admin control panel
+
### Fixed
- Fixed the date conversion of the import of historical market data in the admin control panel
diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.html b/apps/client/src/app/components/admin-platform/admin-platform.component.html
index bd7e82560b..ecf3304cf5 100644
--- a/apps/client/src/app/components/admin-platform/admin-platform.component.html
+++ b/apps/client/src/app/components/admin-platform/admin-platform.component.html
@@ -91,7 +91,11 @@
<span i18n>Edit</span>
</span>
</button>
- <button mat-menu-item (click)="onDeletePlatform(element.id)">
+ <button
+ mat-menu-item
+ [disabled]="element.accountCount > 0"
+ (click)="onDeletePlatform(element.id)"
+ >
<span class="align-items-center d-flex">
<ion-icon class="mr-2" name="trash-outline" />
<span i18n>Delete</span>
diff --git a/apps/client/src/app/components/admin-tag/admin-tag.component.html b/apps/client/src/app/components/admin-tag/admin-tag.component.html
index 311b265194..c6e7f00fec 100644
--- a/apps/client/src/app/components/admin-tag/admin-tag.component.html
+++ b/apps/client/src/app/components/admin-tag/admin-tag.component.html
@@ -71,7 +71,11 @@
<span i18n>Edit</span>
</span>
</button>
- <button mat-menu-item (click)="onDeleteTag(element.id)">
+ <button
+ mat-menu-item
+ [disabled]="element.activityCount > 0"
+ (click)="onDeleteTag(element.id)"
+ >
<span class="align-items-center d-flex">
<ion-icon class="mr-2" name="trash-outline" />
<span i18n>Delete</span>