From bfc87e0f7bb080f83c6a3fbd50d3370874d65063 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Mar 2023 13:50:35 +0100 Subject: [PATCH] Display arrays and objects in the entity modal as prettified JSON. --- .../http/webapp/src/components/panels/Entities/Modal.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Modal.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Modal.vue index caa345bad..5bc50e7a4 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Modal.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Modal.vue @@ -314,7 +314,7 @@ export default { if (value == null) return '' if (Array.isArray(value) || typeof value === 'object') - return JSON.stringify(value) + return JSON.stringify(value, null, 2) return '' + value }, }, @@ -402,6 +402,13 @@ export default { } } + .extra-info-container { + .value { + white-space: pre-wrap; + opacity: 0.8; + } + } + .value { &.url { text-align: right;