diff --git a/resources/views/livewire/project/shared/environment-variable/all.blade.php b/resources/views/livewire/project/shared/environment-variable/all.blade.php index ae95ef6806..41b62e3c69 100644 --- a/resources/views/livewire/project/shared/environment-variable/all.blade.php +++ b/resources/views/livewire/project/shared/environment-variable/all.blade.php @@ -1,5 +1,8 @@ @php - $showEnvironmentType = $showPreview; + // Preview and production variables are split into labelled groups instead of a + // shared "Type" column, so the column is dropped and rows are headed by scope. + $groupByScope = $showPreview; + $showEnvironmentType = false; $activeFilterCount = count($variableFilters) + count($serviceFilters) + ($environmentFilter !== 'all' ? 1 : 0); $filterLabels = [ 'managed' => 'Managed', 'user' => 'User-defined', 'buildtime' => 'Buildtime', @@ -212,7 +215,14 @@ Runtime + @php $renderedScope = null; @endphp @foreach ($this->environmentVariablePageRows as $row) + @if ($groupByScope && $row['scope'] !== $renderedScope) + @php $renderedScope = $row['scope']; @endphp +