Skip to content

Commit

Permalink
feat: quizzes error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeUrSelf committed Sep 6, 2024
1 parent 4cbf4c9 commit 455a8de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/js/Pages/Admin/Quizzes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { type Quiz } from '@/Types/Quiz'
import { type Question } from '@/Types/Question'
import { type Answer } from '@/Types/Answer'
import Dropdown from '@/components/Common/Dropdown.vue'
import Banner from '@/components/Common/Banner.vue'
const props = defineProps<{ quizzes: Quiz[] }>()
const selectedQuiz = ref<number>()
const showLockedQuizzes = ref<boolean>(true)
Expand Down Expand Up @@ -57,6 +58,7 @@ function sortByNameDescending(){
</script>

<template>
<Banner v-if="request.error.value" :text="request.error.value" banner-class="bg-red" @click="request.error.value=''" />
<div class="flex flex-col w-full pb-3">
<div data-name="toolbar" class="flex gap-5 px-6 backdrop-blur-md z-50">
<Dropdown :options="[
Expand Down

0 comments on commit 455a8de

Please sign in to comment.