From e760f8e23a5be510d758417254981fbe7a7c13be Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 11 Oct 2023 16:57:04 +0200 Subject: [PATCH] [Execute panel] Introduced a common `Response` component. --- .../src/components/panels/Execute/Index.vue | 36 +++---------------- .../components/panels/Execute/Response.vue | 35 ++++++++++++++++++ 2 files changed, 39 insertions(+), 32 deletions(-) create mode 100644 platypush/backend/http/webapp/src/components/panels/Execute/Response.vue diff --git a/platypush/backend/http/webapp/src/components/panels/Execute/Index.vue b/platypush/backend/http/webapp/src/components/panels/Execute/Index.vue index ec2f89c54..c7adfd8de 100644 --- a/platypush/backend/http/webapp/src/components/panels/Execute/Index.vue +++ b/platypush/backend/http/webapp/src/components/panels/Execute/Index.vue @@ -137,25 +137,7 @@ -
-

- - {{ error != null ? 'Error' : 'Output' }} - - - - -

-
-
-            
- -
-
-            
-
+ @@ -169,18 +151,7 @@ -
-
-

-
- -
-

-
-
-
+ @@ -222,13 +193,14 @@ import Argdoc from "./Argdoc" import Autocomplete from "@/components/elements/Autocomplete" import Loading from "@/components/Loading" import Modal from "@/components/Modal"; +import Response from "./Response" import Tab from "@/components/elements/Tab" import Tabs from "@/components/elements/Tabs" import Utils from "@/Utils" export default { name: "Execute", - components: {Argdoc, Autocomplete, Loading, Modal, Tab, Tabs}, + components: {Argdoc, Autocomplete, Loading, Modal, Response, Tab, Tabs}, mixins: [Utils], data() { diff --git a/platypush/backend/http/webapp/src/components/panels/Execute/Response.vue b/platypush/backend/http/webapp/src/components/panels/Execute/Response.vue new file mode 100644 index 000000000..efe7fb998 --- /dev/null +++ b/platypush/backend/http/webapp/src/components/panels/Execute/Response.vue @@ -0,0 +1,35 @@ + + + + +