Browse Source

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

Improve copy-to-clipboard
pull/7282/head
Thomas Kaul 6 days ago
committed by GitHub
parent
commit
a7e721dbee
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      apps/client/src/app/components/user-account-membership/user-account-membership.component.ts
  2. 2
      libs/ui/src/lib/notifications/alert-dialog/alert-dialog.html

2
apps/client/src/app/components/user-account-membership/user-account-membership.component.ts

@ -147,7 +147,7 @@ export class GfUserAccountMembershipComponent {
.subscribe(({ apiKey }) => { .subscribe(({ apiKey }) => {
this.notificationService.alert({ this.notificationService.alert({
copyValue: apiKey, copyValue: apiKey,
discardLabel: $localize`Okay`, discardLabel: $localize`Close`,
message: $localize`Set this API key in your self-hosted environment:`, message: $localize`Set this API key in your self-hosted environment:`,
title: $localize`Ghostfolio Premium Data Provider API Key` title: $localize`Ghostfolio Premium Data Provider API Key`
}); });

2
libs/ui/src/lib/notifications/alert-dialog/alert-dialog.html

@ -8,7 +8,7 @@
<div [innerHTML]="message"></div> <div [innerHTML]="message"></div>
} }
@if (copyValue) { @if (copyValue) {
<div class="mt-2">{{ copyValue }}</div> <div class="mt-1">{{ copyValue }}</div>
} }
</div> </div>
} }

Loading…
Cancel
Save