Skip to content

Commit

Permalink
chore: don't wrap with error component
Browse files Browse the repository at this point in the history
  • Loading branch information
chinook25 committed Dec 18, 2024
1 parent c3ae598 commit 8c2c15c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
5 changes: 2 additions & 3 deletions apps/directory/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<template v-if="banner" #banner>
<div v-html="banner"></div>
</template>
<Error>
<RouterView @click="closeAllDropdownButtons" />
</Error>
<Error />
<RouterView @click="closeAllDropdownButtons" />
<template #footer>
<Footer />
</template>
Expand Down
31 changes: 14 additions & 17 deletions apps/directory/src/components/Error.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
<template>
<div>
<div class="d-flex justify-content-center">
<div
v-if="error"
class="border border-danger justify-content-between bd-highligh p-2 align-middle"
>
<span style="color: red">
An error occurred while loading the data. Please, try a different
search. If this error persists, please contact our helpdesk.
</span>
<span>
<button class="btn" type="button" @click="clearError">
<span class="fa-solid fa-xmark" />
</button>
</span>
</div>
<div class="d-flex justify-content-center">
<div
v-if="error"
class="border border-danger justify-content-between bd-highligh p-2 align-middle"
>
<span style="color: red">
An error occurred while loading the data. Please, try a different
search. If this error persists, please contact our helpdesk.
</span>
<span>
<button class="btn" type="button" @click="clearError">
<span class="fa-solid fa-xmark" />
</button>
</span>
</div>
<slot />
</div>
</template>

Expand Down

0 comments on commit 8c2c15c

Please sign in to comment.