mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-23 21:42:06 +00:00
Показ названия сервиса в общем списке стримов
This commit is contained in:
parent
89a23dd6c6
commit
805b55aa44
@ -7,6 +7,7 @@
|
||||
</a>
|
||||
{{ stream.id }} {{ stream.protocol }}
|
||||
<template v-if="stream.ttl">TTL {{ stream.ttl }}</template>
|
||||
<template v-if="shouldShowServiceName"><br/>{{ getServiceName(stream.service) }} #{{stream.service}}</template>
|
||||
<br/>
|
||||
{{ dateToText(stream.startTimestamp) }}
|
||||
<template v-if="!dateMatches(stream.startTimestamp, stream.endTimestamp)">
|
||||
@ -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 ?? '<Deleted service>'
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user