diff --git a/src/App.vue b/src/App.vue index 721f41fd12f..20769f12749 100644 --- a/src/App.vue +++ b/src/App.vue @@ -56,7 +56,7 @@
{{ appInfo.controllerStatus }}
- + @@ -301,6 +302,18 @@ export default { methods: { ...mapActions(['initNodes', 'setAppInfo', 'updateValue', 'removeValue']), ...mapMutations(['setControllerStatus', 'initNode', 'removeNode']), + copyVersion () { + const el = document.createElement('textarea') + el.value = `zwavejs2mqtt: ${this.appInfo.appVersion}\nzwave-js: ${this.appInfo.zwaveVersion}\nhome id: ${this.appInfo.homeid}\n home hex:${this.appInfo.homeHex}` + el.setAttribute('readonly', '') + el.style.position = 'absolute' + el.style.left = '-9999px' + document.body.appendChild(el) + el.select() + document.execCommand('copy') + document.body.removeChild(el) + this.showSnackbar('Copied to clipboard') + }, async updatePassword () { try { const response = await ConfigApis.updatePassword(this.password)