From 5dd95362a1e336e08d1a85ff5b94ef3286616b07 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Mar 2023 16:20:29 +0100 Subject: [PATCH] Include links both to the parent and children entities in EntityModal. --- .../src/components/panels/Entities/Index.vue | 2 + .../src/components/panels/Entities/Modal.vue | 61 ++++++++++++++++--- 2 files changed, 53 insertions(+), 10 deletions(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue index c5cda789..ed1ccf58 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Index.vue @@ -17,6 +17,8 @@
-
+
Parent
-
@@ -120,7 +119,31 @@
-
+ + +
  @@ -150,7 +173,7 @@
-
@@ -195,6 +218,7 @@ const specialFields = [ 'external_url', 'id', 'image_url', + 'is_configuration', 'meta', 'name', 'plugin', @@ -213,6 +237,14 @@ export default { required: true, }, + parent: { + type: Object, + }, + + children: { + type: Object, + }, + visible: { type: Boolean, default: false, @@ -238,6 +270,7 @@ export default { editName: false, editIcon: false, configCollapsed: true, + childrenCollapsed: true, extraInfoCollapsed: true, specialFields: specialFields, } @@ -326,6 +359,10 @@ export default { .body { padding: 0; + @include from($desktop) { + min-width: 45em; + } + .table-row { box-shadow: none; padding: 0.5em; @@ -386,9 +423,7 @@ export default { } } - .config-container, - .extra-info-container - { + .section { margin: 0; .section-title { @@ -410,8 +445,14 @@ export default { } .value { - &.url { + &.url, a { text-align: right; + text-decoration: underline; + opacity: 0.8; + + &:hover { + opacity: 0.6; + } } .entity-image {