forked from platypush/platypush
Propert snake case -> camel case conversion for backend entities -> frontend components
This commit is contained in:
parent
0f19104512
commit
6454f9d018
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ export default {
|
|||
computed: {
|
||||
type() {
|
||||
let entityType = (this.value.type || '')
|
||||
return entityType.charAt(0).toUpperCase() + entityType.slice(1)
|
||||
return entityType.split('_').
|
||||
map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join('')
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue