From 6454f9d018564945e5b848db0e0de3848dae5dd9 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 4 Nov 2022 22:53:24 +0100 Subject: [PATCH] Propert snake case -> camel case conversion for backend entities -> frontend components --- .../http/webapp/src/components/panels/Entities/EntityMixin.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/EntityMixin.vue b/platypush/backend/http/webapp/src/components/panels/Entities/EntityMixin.vue index 74198d298..4ee33e50c 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/EntityMixin.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/EntityMixin.vue @@ -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('') }, }, }