load detour tags

This commit is contained in:
Alireza Ahmadi
2024-05-13 15:32:17 +02:00
parent 8b6cd88625
commit 8e2023ee66
7 changed files with 39 additions and 35 deletions
+10
View File
@@ -5,6 +5,8 @@
:id="modal.id"
:stats="modal.stats"
:data="modal.data"
:inTags="inTags"
:outTags="outTags"
@close="closeModal"
@save="saveModal"
/>
@@ -115,6 +117,14 @@ const inbounds = computed((): Inbound[] => {
return <Inbound[]> appConfig.value.inbounds
})
const inTags = computed((): string[] => {
return appConfig.value.inbounds.map(i => i.tag)
})
const outTags = computed((): string[] => {
return appConfig.value.outbounds.map(i => i.tag)
})
const clients = computed((): Client[] => {
return <Client[]> Data().clients
})