2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
books/ui/components/Modal/ErrorModal.vue
Anto Christopher b96ea40b99 Add error modal (#82)
* Add error modal

* Initialize frappe.error and frappe.events. Code formatting

* Fix indentation
2018-09-21 10:58:53 +05:30

21 lines
379 B
Vue

<template>
<div class="modal-body">
<p v-if="message">{{message}}</p>
<div v-if="stackTrace"><hr>
<textarea v-model="stackTrace" disabled></textarea>
</div>
</div>
</template>
<script>
export default {
props: ["message", "stackTrace"]
}
</script>
<style scoped>
textarea {
width: 100%;
height: 40vh;
padding: 1%
}
</style>