gancio-upstream/layouts/error.vue

23 lines
619 B
Vue
Raw Normal View History

2019-06-09 00:45:50 +02:00
<template lang='pug'>
2020-07-31 01:03:19 +02:00
v-container.p-4.text-center
v-alert(v-if="error.statusCode === 404" type='error' :icon='mdiAlert') ¯\_()_/¯ {{error.message}}
v-alert(v-else type='error' :icon='mdiAlert') An error occurred: {{error.message}}
2021-10-21 12:24:24 +02:00
nuxt-link(to='/')
v-btn 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'
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: () => ({ }) } },
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>