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