From 5e4520be79997dc293f384076508cb0e01d5f753 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Mon, 22 Jan 2024 15:28:21 +0100 Subject: [PATCH] feat(ui): add protocol selection on inclusion --- src/components/dialogs/DialogNodesManager.vue | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/src/components/dialogs/DialogNodesManager.vue b/src/components/dialogs/DialogNodesManager.vue index 1b523fcdc9..d279120622 100644 --- a/src/components/dialogs/DialogNodesManager.vue +++ b/src/components/dialogs/DialogNodesManager.vue @@ -504,6 +504,10 @@ persistent-hint > + + import { mapState } from 'pinia' -import { tryParseDSKFromQRCodeString } from '@zwave-js/core/safe' - +import { Protocols, tryParseDSKFromQRCodeString } from '@zwave-js/core/safe' import { parseSecurityClasses, securityClassesToArray, @@ -692,6 +711,7 @@ import { import useBaseStore from '../../stores/base.js' import { InclusionStrategy, SecurityBootstrapFailure } from 'zwave-js/safe' import InstancesMixin from '../../mixins/InstancesMixin.js' +import { protocolsItems } from '../../lib/items' export default { props: { @@ -705,6 +725,8 @@ export default { loading: false, validNaming: true, InclusionStrategy, + protocolsItems, + Protocols, availableSteps: { action: { key: 'action', @@ -745,6 +767,8 @@ export default { s2Unauthenticated: undefined, s0Legacy: undefined, clientAuth: false, + supportedProtocols: [], + protocol: Protocols.ZWave, }, }, s2Pin: { @@ -1069,6 +1093,8 @@ export default { ...grantStep.values, ...parseSecurityClasses(classes), clientAuth: requested.clientSideAuth || undefined, + supportedProtocols: requested.supportedProtocols || [], + protocol: Protocols.ZWave, } if (this.waitTimeout) { @@ -1190,6 +1216,7 @@ export default { { securityClasses, clientSideAuth: !!values.clientAuth, + protocol: values.protocol, }, ]) } else if (s.key === 's2Pin') {