feat(ui): add copy button to environment variable page
This commit is contained in:
parent
afbe4d6fd7
commit
0b811b5ef6
2 changed files with 8 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue