fix: allow editing comments on locked environment variables
Modified the locked environment variable view to keep the comment field editable even when the variable value is locked. Users with update permission can now edit comments on locked variables, while users without permission can still view the comment for reference. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a4d5465963
commit
4623853c99
1 changed files with 8 additions and 6 deletions
|
|
@ -21,13 +21,11 @@
|
|||
step2ButtonText="Permanently Delete" />
|
||||
@endcan
|
||||
</div>
|
||||
@if ($comment)
|
||||
<div class="w-full">
|
||||
<x-forms.input disabled id="comment" label="Comment"
|
||||
helper="Documentation for this environment variable." maxlength="256" />
|
||||
</div>
|
||||
@endif
|
||||
@can('update', $this->env)
|
||||
<div class="w-full">
|
||||
<x-forms.input instantSave id="comment" label="Comment (Optional)"
|
||||
helper="Add a note to document what this environment variable is used for." maxlength="256" />
|
||||
</div>
|
||||
<div class="flex flex-col w-full gap-3">
|
||||
<div class="flex flex-wrap w-full items-center gap-4">
|
||||
@if (!$is_redis_credential)
|
||||
|
|
@ -115,6 +113,10 @@
|
|||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<x-forms.input disabled id="comment" label="Comment"
|
||||
helper="Documentation for this environment variable." maxlength="256" />
|
||||
</div>
|
||||
@endcan
|
||||
@else
|
||||
@can('update', $this->env)
|
||||
|
|
|
|||
Loading…
Reference in a new issue