- add delete project page
This commit is contained in:
@@ -18,13 +18,19 @@ defineProps({
|
||||
v-for="(project, key) in projects"
|
||||
:key="key"
|
||||
>
|
||||
<div class="flex items-center justify-between px-3 py-2 bg-white hover:bg-zinc-300 cursor-pointer">
|
||||
<div class="flex items-center justify-between px-3 py-2 bg-white hover:bg-neutral-200">
|
||||
<InertiaLink :href="`/dashboard/project/${project.id}`">{{ project.title }}</InertiaLink>
|
||||
<div>
|
||||
<div class="flex items-center gap-2">
|
||||
<InertiaLink
|
||||
as="button"
|
||||
class="px-2 py-1 bg-green-200"
|
||||
:href="`/dashboard/project/${project.id}`">Edit</InertiaLink>
|
||||
class="px-2 py-1 text-lime-600 hover:text-lime-800 border-t-2 border-b-2 border-transparent hover:border-b-lime-600"
|
||||
:href="`/dashboard/project/${project.id}`"
|
||||
title="Edytuj projekt"><FontAwesomeIcon :icon="['fas', 'pen-to-square']" /></InertiaLink>
|
||||
<InertiaLink
|
||||
as="button"
|
||||
class="px-2 py-1 text-red-600 hover:text-red-800"
|
||||
:href="`/dashboard/project/${project.id}/delete`"
|
||||
title="Usuń projekt z listy"><FontAwesomeIcon :icon="['fas', 'trash']" /></InertiaLink>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user