1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2025-01-09 19:10:27 +05:30
Piped/src/components/ErrorHandler.vue

22 lines
548 B
Vue
Raw Normal View History

<template>
<p>{{ message }}</p>
2021-11-01 00:06:47 +05:30
<button @click="toggleTrace" class="uk-button uk-button-small" type="button">
{{ $t("actions.show_more") }}
</button>
2021-11-01 00:06:47 +05:30
<p ref="stacktrace" style="white-space: pre-wrap" hidden>{{ error }}</p>
</template>
<script>
export default {
props: {
error: { type: String, default: null },
message: { type: String, default: null },
},
2021-11-01 00:06:47 +05:30
methods: {
toggleTrace() {
this.$refs.stacktrace.hidden = !this.$refs.stacktrace.hidden;
},
},
};
</script>