Skip to content

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

Feature/add copy-to-clipboard button to user detail dialog (#6641)

Thomas Kauld702685ce39f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 89055d018e..407767cac9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added support for a copy-to-clipboard functionality in the value component
- Extended the holding detail dialog by adding a copy-to-clipboard button for the ISIN number (experimental)
- Extended the holding detail dialog by adding a copy-to-clipboard button for the symbol (experimental)
+- Extended the user detail dialog of the admin control panel’s users section by adding a copy-to-clipboard button for the user id
### Changed
diff --git a/apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html b/apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html
index 570dcf4d6b..e9af869428 100644
--- a/apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html
+++ b/apps/client/src/app/components/user-detail-dialog/user-detail-dialog.html
@@ -27,7 +27,13 @@
<div class="container p-0">
<div class="mb-3 row">
<div class="col-6 mb-3">
- <gf-value i18n size="medium" [value]="user?.id">User ID</gf-value>
+ <gf-value
+ i18n
+ size="medium"
+ [enableCopyToClipboardButton]="true"
+ [value]="user?.id"
+ >User ID</gf-value
+ >
</div>
<div class="col-6 mb-3">
<gf-value i18n size="medium" [value]="user?.role">Role</gf-value>