mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-01-08 10:30:28 +05:30
22 lines
512 B
Vue
22 lines
512 B
Vue
<template>
|
|
<p>{{ message }}</p>
|
|
<button @click="toggleTrace" class="btn">
|
|
{{ $t("actions.show_more") }}
|
|
</button>
|
|
<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 },
|
|
},
|
|
methods: {
|
|
toggleTrace() {
|
|
this.$refs.stacktrace.hidden = !this.$refs.stacktrace.hidden;
|
|
},
|
|
},
|
|
};
|
|
</script>
|