fix project deletion and refactor some code

This commit is contained in:
peaklabs-dev
2024-10-18 13:48:41 +02:00
parent 5d62a46a16
commit 5a38b21d95
5 changed files with 20 additions and 10 deletions

View File

@@ -7,7 +7,7 @@
<h1>Project: {{ data_get($project, 'name') }}</h1>
<div class="flex items-end gap-2">
<x-forms.button type="submit">Save</x-forms.button>
<livewire:project.delete-project :disabled="$project->resource_count() > 0" :project_id="$project->id" />
<livewire:project.delete-project :disabled="!$project->isEmpty()" :project_id="$project->id" />
</div>
</div>
<div class="pt-2 pb-10">Edit project details here.</div>