mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
23 lines
411 B
Vue
23 lines
411 B
Vue
<template>
|
|
<component :is="errorPageType.getComponent()" :error="error" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
error: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
computed: {
|
|
errorPageType() {
|
|
return this.$registry
|
|
.getOrderedList('errorPage')
|
|
.reverse()
|
|
.find((errorPageType) => errorPageType.isApplicable(this.error))
|
|
},
|
|
},
|
|
}
|
|
</script>
|