diff --git a/src/components/SidebarStream.vue b/src/components/SidebarStream.vue
index 849b148..612dfb0 100644
--- a/src/components/SidebarStream.vue
+++ b/src/components/SidebarStream.vue
@@ -7,6 +7,7 @@
{{ stream.id }} {{ stream.protocol }}
TTL {{ stream.ttl }}
+
{{ getServiceName(stream.service) }} #{{stream.service}}
{{ dateToText(stream.startTimestamp) }}
@@ -39,9 +40,17 @@
userAgentHash: String(),
},
},
+ computed: {
+ shouldShowServiceName: function () {
+ return this.$route?.params?.servicePort === undefined;
+ },
+ },
data: function () {
return {
favorite0: this.stream.favorite,
+ getServiceName: function (port) {
+ return this.$store.state.services.find(o => o.port === port)?.name ?? ''
+ },
};
},
methods: {