Skip to content

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

Task/improve copy-to-clipboard in alert dialog (#7281)

Thomas Kaula7e721dbee17
diff --git a/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts b/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts
index d086867aac..bdf2c3eb66 100644
--- a/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts
+++ b/apps/client/src/app/components/user-account-membership/user-account-membership.component.ts
@@ -147,7 +147,7 @@ export class GfUserAccountMembershipComponent {
.subscribe(({ apiKey }) => {
this.notificationService.alert({
copyValue: apiKey,
- discardLabel: $localize`Okay`,
+ discardLabel: $localize`Close`,
message: $localize`Set this API key in your self-hosted environment:`,
title: $localize`Ghostfolio Premium Data Provider API Key`
});
diff --git a/libs/ui/src/lib/notifications/alert-dialog/alert-dialog.html b/libs/ui/src/lib/notifications/alert-dialog/alert-dialog.html
index f690a8e5d1..f093896804 100644
--- a/libs/ui/src/lib/notifications/alert-dialog/alert-dialog.html
+++ b/libs/ui/src/lib/notifications/alert-dialog/alert-dialog.html
@@ -8,7 +8,7 @@
<div [innerHTML]="message"></div>
}
@if (copyValue) {
- <div class="mt-2">{{ copyValue }}</div>
+ <div class="mt-1">{{ copyValue }}</div>
}
</div>
}