diff --git a/src/components/nodes-table/ExpandedNode.vue b/src/components/nodes-table/ExpandedNode.vue
index 2dfee1bcc8..82ac8aecf5 100644
--- a/src/components/nodes-table/ExpandedNode.vue
+++ b/src/components/nodes-table/ExpandedNode.vue
@@ -4,6 +4,8 @@
Node
Home Assistant
Groups
+ Debug Info
+
+
+
+
+
+
@@ -57,6 +72,9 @@ export default {
},
computed: {
...mapGetters(['gateway']),
+ nodeJson () {
+ return JSON.stringify(this.node, null, 2)
+ },
showHass () {
console.log(Object.keys(this.node.hassDevices))
return (
@@ -70,6 +88,15 @@ export default {
return {
currentTab: 0
}
+ },
+ methods: {
+ copyText () {
+ const textToCopy = this.$refs.nodeJsonContent.$el.querySelector(
+ 'textarea'
+ )
+ textToCopy.select()
+ document.execCommand('copy')
+ }
}
}