2019-06-09 00:45:50 +02:00
|
|
|
<template lang='pug'>
|
2022-06-07 21:08:47 +02:00
|
|
|
v-container.pa-2.text-center
|
|
|
|
v-alert(v-if="error.statusCode === 404" type='error' :icon='mdiAlert') ¯\_(ツ)_/¯ {{error.message}}
|
|
|
|
v-alert.mb-2(v-else type='error' :icon='mdiAlert') An error occurred: {{error.message}}
|
|
|
|
nuxt-link(to='/')
|
|
|
|
v-btn(outlined color='primary') Back to home
|
2019-06-09 00:45:50 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-01-14 16:29:53 +01:00
|
|
|
import { mapState } from 'vuex'
|
2022-02-08 14:45:19 +01:00
|
|
|
import { mdiAlert } from '@mdi/js'
|
2019-06-09 00:45:50 +02:00
|
|
|
export default {
|
2020-10-25 00:31:01 +02:00
|
|
|
props: { error: { type: Object, default: () => ({ }) } },
|
2022-02-08 14:45:19 +01:00
|
|
|
data () {
|
|
|
|
return { mdiAlert }
|
|
|
|
},
|
2020-01-14 16:29:53 +01:00
|
|
|
head () {
|
|
|
|
return { title: `${this.settings.title} - Error` }
|
2020-10-25 00:31:01 +02:00
|
|
|
},
|
|
|
|
computed: mapState(['settings'])
|
2019-06-09 00:45:50 +02:00
|
|
|
}
|
|
|
|
</script>
|