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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
apps/client/src/app/components/user-account-membership/user-account-membership.component.ts
-
libs/ui/src/lib/notifications/alert-dialog/alert-dialog.html
|
|
@ -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` |
|
|
}); |
|
|
}); |
|
|
|
|
|
@ -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> |
|
|
} |
|
|
} |
|
|
|