2021-06-06 18:47:43 +00:00
|
|
|
<template>
|
2021-12-27 16:29:25 +00:00
|
|
|
<p v-text="message" />
|
2022-01-30 23:48:27 +00:00
|
|
|
<button @click="toggleTrace" class="btn" v-t="'actions.show_more'" />
|
2022-01-12 11:59:50 +00:00
|
|
|
<p ref="stacktrace" class="whitespace-pre-wrap" hidden v-text="error" />
|
2021-06-06 18:47:43 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
2021-10-08 18:52:51 +00:00
|
|
|
error: { type: String, default: null },
|
|
|
|
message: { type: String, default: null },
|
2021-06-06 18:47:43 +00:00
|
|
|
},
|
2021-10-31 18:36:47 +00:00
|
|
|
methods: {
|
|
|
|
toggleTrace() {
|
|
|
|
this.$refs.stacktrace.hidden = !this.$refs.stacktrace.hidden;
|
|
|
|
},
|
|
|
|
},
|
2021-06-06 18:47:43 +00:00
|
|
|
};
|
|
|
|
</script>
|