feat(ui): add copy button to environment variable page

This commit is contained in:
peaklabs-dev 2026-08-18 18:58:34 +02:00
parent afbe4d6fd7
commit 0b811b5ef6
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View file

@ -28,7 +28,10 @@ class="env-key-label min-w-0 truncate text-left font-mono text-[13px] text-black
<span class="data-table-cell-dash">-</span>
<span class="data-table-cell-dash">-</span>
<span class="data-table-cell-dash">-</span>
<div class="justify-self-end">
<div class="flex items-center gap-0.5 justify-self-end">
@unless (auth()->user()?->isMember() ?? true)
<x-copy-button resolve="$wire.copyValue()" label="Copy value" />
@endunless
<x-modal-input title="Environment variable details" :closeOutside="false">
<x-slot:content>
<button type="button" data-env-settings-trigger class="icon-button shrink-0"

View file

@ -83,7 +83,10 @@ class="env-key-label min-w-0 truncate text-left font-mono text-[13px] text-black
@endif
@endforeach
@endif
<div class="justify-self-end">
<div class="flex items-center gap-0.5 justify-self-end">
@if (! $isLocked && ! $isValueHidden)
<x-copy-button resolve="$wire.copyValue()" label="Copy value" />
@endif
{{-- Open modal immediately (Alpine); decrypt value in a follow-up Livewire request. --}}
<x-modal-input title="Edit environment variable" :closeOutside="false" :wireIgnore="false"
wireOpen="editorOpen">