-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.vue
51 lines (50 loc) · 1.42 KB
/
error.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template>
<NuxtLayout>
<ErrorTitle :error="error" />
<TopBar
@back="previous ? $router.back() : navigateTo('/')"
:title="'Chyba ' + error.statusCode"
is-h1
/>
<div class="custom-container">
<div class="shadow bg-surface-100 mx-4 my-12 px-6 py-4 inline-block">
<p class="mb-3">
<span v-if="error.statusCode === 404">
Stránka nebyla nalezena. <br />Zkuste použít vyhledávání.
</span>
<span v-else>
Ajajaj, někde se stala chyba.<br />
Zkuste použít vyhledávání.
</span>
</p>
<div class="-m-1">
<BasicButton
icon-name="search"
type="primary"
class="m-1"
to="/?hledat=ano"
>
Hledat
</BasicButton>
<BasicButton
icon-name="warning"
type="outlined"
class="m-1"
:href="
'https://glowspace.atlassian.net/servicedesk/customer/portal/1/group/6/create/20?customfield_10056=' +
encodeURIComponent($config.public.siteUrl + $route.fullPath) +
'&summary=Chyba+webu+(' +
error.statusCode +
')'
"
>
Nahlásit
</BasicButton>
</div>
</div>
</div>
</NuxtLayout>
</template>
<script setup>
const props = defineProps(['error']);
</script>