From 72c434143414f5d2d362742eca8e2bc3b944854d Mon Sep 17 00:00:00 2001 From: YuShifan <894402575bt@gmail.com> Date: Fri, 22 Nov 2024 17:54:40 +0800 Subject: [PATCH] feat(desktop): display mqtt properties on tree node info --- src/components/MqttProperties.vue | 8 ++++++- src/widgets/TreeNodeInfo.vue | 37 ++++++++++++++++++++++++++++++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/components/MqttProperties.vue b/src/components/MqttProperties.vue index 70932069d..b2e2579da 100644 --- a/src/components/MqttProperties.vue +++ b/src/components/MqttProperties.vue @@ -15,7 +15,12 @@ /> - {{ $t(`connections.${field.key}`) }}: {{ properties[field.key] }} + + {{ $t(`connections.${field.key}`) }}: + {{ properties[field.key] }} +
@@ -38,6 +43,7 @@ interface PropertyField { export default class MqttProperties extends Vue { @Prop({ required: true }) public properties!: PushPropertiesModel @Prop({ default: '' }) public direction!: string + @Prop({ default: true }) public showColon!: boolean private propertyFields: PropertyField[] = [ { key: 'subscriptionIdentifier' }, diff --git a/src/widgets/TreeNodeInfo.vue b/src/widgets/TreeNodeInfo.vue index 86e099704..7e5941798 100644 --- a/src/widgets/TreeNodeInfo.vue +++ b/src/widgets/TreeNodeInfo.vue @@ -54,6 +54,11 @@
+