generated from Flycro/laravel-nuxt
feat: Changed Vote Icon to Check
parent
c2a2ae0d07
commit
73dab4dd6e
|
|
@ -32,7 +32,7 @@ const { refresh: onVote, status } = useFetch<any>(`vote`, {
|
|||
async onResponse({ response }) {
|
||||
if (response.ok) {
|
||||
useToast().add({
|
||||
icon: 'i-heroicons-check-circle-20-solid',
|
||||
icon: 'i-heroicons-check-circle',
|
||||
title: 'Abstimmung erfolgreich.',
|
||||
color: 'emerald',
|
||||
})
|
||||
|
|
@ -45,12 +45,12 @@ const { refresh: onVote, status } = useFetch<any>(`vote`, {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<UButton v-if="props.row.status === 'PENDING'" class="transition-150 transform-gpu hover:scale-110" icon="i-heroicons-star" size="sm" color="green" variant="solid" square :disabled="authStore.user.total_votes === 0" @click="isOpen = true" />
|
||||
<UButton v-if="props.row.status === 'PENDING'" class="transition-150 transform-gpu hover:scale-110" icon="i-heroicons-check-circle" size="sm" color="green" variant="solid" square :disabled="authStore.user.total_votes === 0" @click="isOpen = true" />
|
||||
<UDashboardModal
|
||||
v-model="isOpen"
|
||||
title="Für Buch abstimmen"
|
||||
:description="`Bist du dir sicher das du für die Buchempfehlung "${row.book_name}" abstimmen möchtest?`"
|
||||
icon="i-heroicons-star"
|
||||
icon="i-heroicons-check-circle"
|
||||
:ui="{
|
||||
icon: { base: 'text-primary-500 dark:text-primary-400' } as any,
|
||||
footer: { base: 'ml-16' } as any,
|
||||
|
|
|
|||
Loading…
Reference in New Issue