[UI] Support both string and objects on the Response component.

This commit is contained in:
Fabio Manganiello 2024-09-05 01:35:05 +02:00
parent b0d9a95331
commit cc621cdca6
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -31,8 +31,13 @@ export default {
name: 'Response', name: 'Response',
mixins: [Utils], mixins: [Utils],
props: { props: {
response: String, response: {
error: String, type: [String, Object],
},
error: {
type: [String, Object],
},
}, },
computed: { computed: {
@ -57,4 +62,14 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "common"; @import "common";
.response {
.buttons {
button:hover {
color: $default-hover-fg;
background: none;
border: none;
}
}
}
</style> </style>