forked from platypush/platypush
[UI] Support both string and objects on the Response
component.
This commit is contained in:
parent
b0d9a95331
commit
cc621cdca6
1 changed files with 17 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue