Initial commit
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
koh
2025-04-28 13:51:59 +07:00
committed by GitHub
commit 7f02e92304
113 changed files with 11808 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<script setup>
import { computed } from "vue";
import { usePage } from "@inertiajs/vue3";
import NotificationBarInCard from "@/components/NotificationBarInCard.vue";
const errors = computed(() => usePage().props.errors);
const hasErrors = computed(() => Object.keys(errors.value).length > 0);
</script>
<template>
<NotificationBarInCard v-if="hasErrors" color="danger">
<b>Whoops! Something went wrong.</b>
<span v-for="(error, key) in errors" :key="key">{{ error }}</span>
</NotificationBarInCard>
</template>