Commit cf407df1 authored by gj4210's avatar gj4210 👽 Committed by janis.streib
Browse files

ADD: Include Transaction API object in Transaction error output

parent f88f044b
......@@ -129,7 +129,7 @@
Weitere Fehlerinformationen:
</p>
<CopyField class="shadow" variant="danger"
:text="JSON.stringify($store.state.transaction_result.error, null, 1)"
:text="JSON.stringify({ta: api_ta, result: $store.state.transaction_result.error}, null, 1)"
multiline/>
</template>
<template v-if="$store.state.transaction_result.type === 'success'">
......@@ -238,6 +238,7 @@ import DBEditor from './DBEditor'
import TransactionUtil from '@/util/transactionutil'
import Vue from 'vue'
import CopyField from './CopyField'
import APIUtils from '@/util/apiutil'
export default {
name: 'TransactionList',
......@@ -266,6 +267,9 @@ export default {
})
}
return res
},
api_ta() {
return APIUtils.buildAPITaFromTaObjectArray(this.$store.state)
}
},
methods: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment