Refactor environment variable sorting by key
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse ($project->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($project->environment_variables->sort()->sortBy('key') as $env)
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
:env="$env" type="project" />
|
:env="$env" type="project" />
|
||||||
@empty
|
@empty
|
||||||
|
@@ -52,7 +52,7 @@
|
|||||||
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
helper="More info <a class='underline dark:text-white' href='https://coolify.io/docs/knowledge-base/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse ($environment->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($environment->environment_variables->sort()->sortBy('key') as $env)
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
:env="$env" type="environment" />
|
:env="$env" type="environment" />
|
||||||
@empty
|
@empty
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if ($view === 'normal')
|
@if ($view === 'normal')
|
||||||
@forelse ($resource->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($resource->environment_variables->sort()->sortBy('key') as $env)
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
:env="$env" :type="$resource->type()" />
|
:env="$env" :type="$resource->type()" />
|
||||||
@empty
|
@empty
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<h3>Preview Deployments</h3>
|
<h3>Preview Deployments</h3>
|
||||||
<div>Environment (secrets) variables for Preview Deployments.</div>
|
<div>Environment (secrets) variables for Preview Deployments.</div>
|
||||||
</div>
|
</div>
|
||||||
@foreach ($resource->environment_variables_preview->sort()->sortBy('real_value') as $env)
|
@foreach ($resource->environment_variables_preview->sort()->sortBy('key') as $env)
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
:env="$env" :type="$resource->type()" />
|
:env="$env" :type="$resource->type()" />
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse ($team->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($team->environment_variables->sort()->sortBy('key') as $env)
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
:env="$env" type="team" />
|
:env="$env" type="team" />
|
||||||
@empty
|
@empty
|
||||||
|
Reference in New Issue
Block a user