fix: Fix directory and file mount headings in file-storage.blade.php

This commit is contained in:
Andras Bacsai
2024-08-29 12:03:23 +02:00
parent d27b1766e6
commit b8a37d897e
4 changed files with 7 additions and 5 deletions

View File

@@ -4,9 +4,9 @@
<h4>{{ data_get($resource, 'name', 'unknown') }}</h4>
@endif --}}
@if ($fileStorage->is_directory)
<h4 class="dark:text-white">Directory Mount</h4>
<h4 class="dark:text-white pt-4 border-t dark:border-coolgray-200">Directory Mount</h4>
@else
<h4 class="dark:text-white">File Mount</h4>
<h4 class="dark:text-white pt-4 border-t dark:border-coolgray-200">File Mount</h4>
@endif
<x-forms.input label="Source Path" :value="$fileStorage->fs_path" readonly />

View File

@@ -35,8 +35,6 @@
<livewire:project.shared.storages.all :resource="$resource" />
@endif
@if ($fileStorage->count() > 0)
<h3 class="mt-4 pt-2 border-t dark:border-coolgray-200">Mounts</h3>
<div class="flex flex-col gap-2">
@foreach ($fileStorage->sort() as $fileStorage)
<livewire:project.service.file-storage :fileStorage="$fileStorage"