Sha256: 31690fcf88b07c1ae265f3ec87024a823dc01ccf764693dfb899b8391029917b

Contents?: true

Size: 709 Bytes

Versions: 4

Compression:

Stored size: 709 Bytes

Contents

<template>
  <div class="notification is-danger is-light">
    <p v-if="error.response.data?.message">{{ error.response.data.message }}</p>
    <p v-else>{{ error }}</p>
  </div>
  <article class="message" v-if="error.response.data?.details">
    <div class="message-body">
      <VueJsonPretty :data="error.response.data.details"></VueJsonPretty>
    </div>
  </article>
</template>

<script lang="ts">
import "vue-json-pretty/lib/styles.css"

import { defineComponent } from "vue"
import VueJsonPretty from "vue-json-pretty"

export default defineComponent({
  name: "ErrorItem",
  props: {
    error: {
      type: Object,
      required: true
    }
  },
  components: {
    VueJsonPretty
  }
})
</script>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mihari-5.7.0 frontend/src/components/ErrorMessage.vue
mihari-5.6.2 frontend/src/components/ErrorMessage.vue
mihari-5.6.1 frontend/src/components/ErrorMessage.vue
mihari-5.6.0 frontend/src/components/ErrorMessage.vue